W3cubDocs

/Laravel 5.1

Schedule

class Schedule (View source)

Methods

Event call( string $callback, array $parameters = array())

Add a new callback event to the schedule.

Event command( string $command, array $parameters = array())

Add a new Artisan command event to the schedule.

Event exec( string $command, array $parameters = array())

Add a new command event to the schedule.

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 $callback, array $parameters = array())

Add a new callback event to the schedule.

Parameters

string $callback
array $parameters

Return Value

Event

Event command( string $command, array $parameters = array())

Add a new Artisan command event to the schedule.

Parameters

string $command
array $parameters

Return Value

Event

Event exec( string $command, array $parameters = array())

Add a new command event to the schedule.

Parameters

string $command
array $parameters

Return Value

Event

array events()

Get all of the events on the schedule.

Return Value

array

array dueEvents( Application $app)

Get all of the events on the schedule that are due.

Parameters

Application $app

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Console/Scheduling/Schedule.html