Schedule
class Schedule (View source)
Properties
| protected Event[] | $events | All of the events on the schedule. | |
| protected EventMutex | $eventMutex | The event mutex implementation. | |
| protected SchedulingMutex | $schedulingMutex | The scheduling mutex implementation. | |
| protected DateTimeZone|string | $timezone | The timezone the date should be evaluated on. | 
Methods
| void |  __construct(DateTimeZone|string|null $timezone = null)  Create a new schedule instance.  |  |
| CallbackEvent |  call(string|callable $callback, array $parameters = [])  Add a new callback event to the schedule.  |  |
| Event |  command(string $command, array $parameters = [])  Add a new Artisan command event to the schedule.  |  |
| CallbackEvent |  job(object|string $job, string|null $queue = null, string|null $connection = null)  Add a new job callback event to the schedule.  |  |
| Event |  exec(string $command, array $parameters = [])  Add a new command event to the schedule.  |  |
| string |  compileParameters(array $parameters)  Compile parameters for a command.  |  |
| bool |  serverShouldRun(Event $event, DateTimeInterface $time)  Determine if the server is allowed to run this event.  |  |
| Collection |  dueEvents(Application $app)  Get all of the events on the schedule that are due.  |  |
| Event[] |  events()  Get all of the events on the schedule.  |  |
| $this |  useCache(string $store)  Specify the cache store that should be used to store mutexes.  |  
Details
void __construct(DateTimeZone|string|null $timezone = null)
Create a new schedule instance.
CallbackEvent call(string|callable $callback, array $parameters = [])
Add a new callback event to the schedule.
Event command(string $command, array $parameters = [])
Add a new Artisan command event to the schedule.
CallbackEvent job(object|string $job, string|null $queue = null, string|null $connection = null)
Add a new job callback event to the schedule.
Event exec(string $command, array $parameters = [])
Add a new command event to the schedule.
protected string compileParameters(array $parameters)
Compile parameters for a command.
bool serverShouldRun(Event $event, DateTimeInterface $time)
Determine if the server is allowed to run this event.
Collection dueEvents(Application $app)
Get all of the events on the schedule that are due.
Event[] events()
Get all of the events on the schedule.
$this useCache(string $store)
Specify the cache store that should be used to store mutexes.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.8/Illuminate/Console/Scheduling/Schedule.html