Skip to content

marksihor/laravel-reports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-reports

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages