PHP code example of labs7in0 / laravel-partitioning
1. Go to this page and download the library: Download labs7in0/laravel-partitioning library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
labs7in0 / laravel-partitioning example snippets
class Log extends PartitioningModel
{
protected $baseTable = 'logs';
}
$logs = Log::combineByBounds(Carbon::today()->subDays(30), Carbon::today())->get();