|
před 4 roky | |
---|---|---|
.. | ||
src | před 4 roky | |
.php_cs | před 4 roky | |
LICENSE | před 4 roky | |
README.md | před 4 roky | |
composer.json | před 4 roky |
$ 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
:
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.
$this->app->make(iBrand\Scheduling\ScheduleList::class)->add(YourSchedule::class);