Download the PHP package filippo-toso/eloquent-aggregates without Composer
On this page you can find all versions of the php package filippo-toso/eloquent-aggregates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download filippo-toso/eloquent-aggregates
More information about filippo-toso/eloquent-aggregates
Files in filippo-toso/eloquent-aggregates
Download filippo-toso/eloquent-aggregates
More information about filippo-toso/eloquent-aggregates
Files in filippo-toso/eloquent-aggregates
Vendor filippo-toso
Package eloquent-aggregates
Short Description A simple trait to add support for aggregate functions in Eloquent models
License MIT
Package eloquent-aggregates
Short Description A simple trait to add support for aggregate functions in Eloquent models
License MIT
Please rate this library. Is it a good library?
Informations about the package eloquent-aggregates
Eloquent Aggregates
A simple trait to add support for aggregate functions in Eloquent models.
Requirements
- PHP 7.2+
- Laravel 5.7+
Installing
Use Composer to install it:
How to use it
Add the FilippoToso\Eloquent\Aggregates\Concerns\HasAggregates
trait to your models.
Then you can use the following methods:
You can also add constraints to the relationship query:
Already extending the Eloquent Builder?
If you are already extending the Illuminate\Database\Eloquent\Builder
, just add the trait FilippoToso\Eloquent\Aggregates\Concerns\QueriesAggregates
to your Builder class.
All versions of eloquent-aggregates with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0 || ^8.0 || ^9.0
illuminate/support Version >=5.7
laravel/helpers Version ^1.1
illuminate/support Version >=5.7
laravel/helpers Version ^1.1
The package filippo-toso/eloquent-aggregates contains the following files
Loading the files please wait ....