|
%!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
src | %!s(int64=4) %!d(string=hai) anos | |
.php_cs | %!s(int64=4) %!d(string=hai) anos | |
LICENSE | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
composer.json | %!s(int64=4) %!d(string=hai) anos |
$ 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);