Download the PHP package allenjd3/scopify without Composer
On this page you can find all versions of the php package allenjd3/scopify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download allenjd3/scopify
More information about allenjd3/scopify
Files in allenjd3/scopify
Package scopify
Short Description This package allows you to quickly create filters and query objects and use them in your laravel scopes.
License MIT
Homepage https://github.com/allenjd3/scopify
Informations about the package scopify
Scopify
This package allows you to quickly create filters and query objects and use them in your laravel scopes.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Create a new filter with
Then in your model, add the Filterable trait
Then you can use your filters like this-
Optionally you can also override the scopifyFilters method to add scopes
You can now use your scope like you normally would- User::myScope()->get()
Applying Multiple Filters
You can apply multiple filters like this-
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- James Allen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of scopify with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0