17/01
2018
Wallogit.com
2017 © Pedro Peláez
ibrand's laravel scheduling. Split scheduling to every package.
$ composer require ibrand/laravel-scheduling -vvv
If your Laravel version below 5.5, you need add the follow line to the section providers of config/app.php:, (*1)
iBrand\Scheduling\ServiceProvider::class,
use iBrand\Scheduling\Scheduling; class YourSchedule extends Scheduling { public function schedule(){ //Your schedule logic. $this->schedule->call(function () { })->daily(); } }
Add follow line to you ServiceProvider register method., (*2)
$this->app->make(iBrand\Scheduling\ScheduleList::class)->add(YourSchedule::class);
全网真正免费的IT课程平台, (*4)
专注于综合IT技术的在线课程,致力于打造优质、高效的IT在线教育平台, (*5)
课程方向包含Python、Java、前端、大数据、数据分析、人工智能等热门IT课程, (*6)
300+免费课程任你选择, (*7)