labs7in0/laravel-partitioning

This package is abandoned and no longer maintained. No replacement package was suggested.

A horizontal partitioning library for Laravel Eloquent.

0.9.2 2019-04-29 03:03 UTC

This package is auto-updated.

Last update: 2022-02-01 13:16:34 UTC


README

[Deprecated] Use DB-level partitioning instead.

A horizontal partitioning library for Laravel Eloquent.

Installation

$ composer require labs7in0/laravel-partitioning

Usage

Create Model

class Log extends PartitioningModel
{
    protected $baseTable = 'logs';
}

Run Query

$logs = Log::combineByBounds(Carbon::today()->subDays(30), Carbon::today())->get();

License

The MIT License

More info see LICENSE