Schedule (Console\Scheduling)

Schedule

class Schedule (View source)

Methods

void __construct()

Create a new event instance.

Event call(string|callable $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 job(object|string $job)

Add a new job callback event to the schedule.

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

Add a new command event to the schedule.

array dueEvents(Application $app)

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

Event[] events()

Get all of the events on the schedule.

Details

void __construct()

Create a new event instance.

Return Value

void

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

Add a new callback event to the schedule.

Parameters

string|callable $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 job(object|string $job)

Add a new job callback event to the schedule.

Parameters

object|string $job

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 dueEvents(Application $app)

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

Parameters

Application $app

Return Value

array

Event[] events()

Get all of the events on the schedule.

Return Value

Event[]

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部