Looking to hire Laravel developers? Try LaraJobs

laravel-recurring maintained by oss-tools

Description
Package for adding recurring functionality to laravel models.
Last update
2023/07/28 07:46 (dev-master)
License
Downloads
6

Comments
comments powered by Disqus

Recurring relation for Laravel models.

Latest Version Software License GitHub Workflow Status Check & fix styling Total Downloads

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.