PHP code example of marksihor / laravel-reports
1. Go to this page and download the library: Download marksihor/laravel-reports 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/ */
marksihor / laravel-reports example snippets
$report = (new Report($query))
->filterable()
->setSumColumn('total')
->setGroupColumn('status')
->withQuantity()
->make();
$report = (new Report($query))->filterable()->today()->count();
$report = (new Report($query))->filterable()->tomorrow()->count();
$report = (new Report($query))->filterable()->yesterday()->count();
$report = (new Report($query))->filterable()->thisWeek()->count();
$report = (new Report($query))->filterable()->thisMonth()->count();
$report = (new Report($query))->filterable()->thisYear()->count();
$report = (new Report($query))->filterable()->future()->count();