larafun / filters
Use Filters instead of Requests in your Laravel projects to be more versatile.
0.0.4
2021-03-27 08:55 UTC
Requires
- php: >=7.0
- illuminate/contracts: >=5.5
- illuminate/support: >=5.5
Requires (Dev)
- orchestra/database: >=3.5
- orchestra/testbench: >=3.5
- phpunit/phpunit: >=6.0
This package is auto-updated.
Last update: 2024-10-27 17:01:15 UTC
README
Use Filters instead of Requests in your Laravel projects to be more versatile.
Check out the full documentation in here larafun-filters.readthedocs.io
Installation
Requires PHP > 7.0, Laravel > 5.5
composer require larafun/filters
Basic Usage
Just make your Filters extend Larafun\Filters\Filter
Why use this package?
Because its safer to not bind your Services to the Request.
You may want to use your Services on environments other than http.
class BookController extends Controller { // ... public function index(BookFilter $filter) { return $bookServices->search($filter); }