Require this package, with Composer, in the root directory of your project.
$ composer require faustbrian/laravel-recurring
<?php
namespace App;
use BrianFaust\Recurring\Recurring;
use Illuminate\Database\Eloquent\Model;
class Task extends Model
{
use Recurring;
}
Route::get('/', function () {
$task = App\Task::first();
$task->recurr()->first();
$task->recurr()->last();
$task->recurr()->next();
$task->recurr()->current();
$task->recurr()->rule();
$task->recurr()->schedule();
});
$ phpunit
If you discover a security vulnerability within this package, please send an e-mail to hello@brianfaust.me. All security vulnerabilities will be promptly addressed.