Schedule
class Schedule (View source)
Properties
protected array | $events | All of the events on the schedule. |
Methods
Event | 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. | |
Event | exec(string $command, array $parameters = []) Add a new command event to the schedule. | |
string | compileParameters(array $parameters) Compile parameters for a command. | |
array | events() Get all of the events on the schedule. | |
array | dueEvents(Application $app) Get all of the events on the schedule that are due. |
Details
Event 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.
Event exec(string $command, array $parameters = [])
Add a new command event to the schedule.
protected string compileParameters(array $parameters)
Compile parameters for a command.
array events()
Get all of the events on the schedule.
array dueEvents(Application $app)
Get all of the events on the schedule that are due.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Console/Scheduling/Schedule.html