oss-tools / laravel-recurring
Package for adding recurring functionality to laravel models.
v1.0.1
2023-07-28 05:46 UTC
Requires
- php: ^8.0.2
- illuminate/database: ^9.0 || ^10.0
- illuminate/support: ^9.0 || ^10.0
- nesbot/carbon: ^2.0
Requires (Dev)
- orchestra/testbench: ^7.0 || ^8.0
- phpunit/phpunit: ^9.5.10 || ^10.1
README
Note: This package is still in active development so breaking changes may be applied before v1 is released. Please proceed with caution.
This package adds a recurring relation to laravel models.
Installation
You can install the package via composer:
composer require oss-tools/laravel-recurring
Usage
use OSSTools\Recurring\Contracts\IsRecurring; use OSSTools\Recurring\Traits\RecurringTrait; class Event extends Model implements IsRecurring { use RecurringTrait; public function getRecurringOptions() { return [ 'start_date' => 'starts_at', 'end_date' => 'ends_at', ]; } }
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.