Download the PHP package pieterdev/repoflow without Composer
On this page you can find all versions of the php package pieterdev/repoflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pieterdev/repoflow
More information about pieterdev/repoflow
Files in pieterdev/repoflow
Download pieterdev/repoflow
More information about pieterdev/repoflow
Files in pieterdev/repoflow
Vendor pieterdev
Package repoflow
Short Description A simple trait to allow fluently querying repositories with an eloquent model. Gives back the flexibility of eloquent to some extent, while remaining explicit on which methods are supported by a repository.
License MIT
Package repoflow
Short Description A simple trait to allow fluently querying repositories with an eloquent model. Gives back the flexibility of eloquent to some extent, while remaining explicit on which methods are supported by a repository.
License MIT
Please rate this library. Is it a good library?
Informations about the package repoflow
repoflow
A simple trait to allow fluently querying repositories with an eloquent model. Gives back the flexibility of eloquent to some extent, while remaining explicit on which methods are supported by a repository.
Using it
Simply:
- Add the Pieterdev\Repoflow\FluentRepositoryTrait to your repository class.
- Add a
protected static $filters= [...]
array to your repository class denoting which properties on your model should be filterable. - Have the model your repository is using as a field called $model on your repository class, or have $model be a string containing the name of the eloquent model used by the repository.
- You can then do chain queries on your repository, for example `$repo->whereName('Jack')->whereScore(3)->all();
- The method
all()
invokes the query.
All versions of repoflow with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package pieterdev/repoflow contains the following files
Loading the files please wait ....