marksihor / laravel-reports
Laravel reports based on eloquent queries.
Installs: 1 221
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
README
Laravel reports based on eloquent queries.
Installing
composer require marksihor/laravel-reports -vvv
Examples
$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();
License
MIT