This package easily add sorting and filtering functionality to any of your models.
Pull this package through Composer.
composer require rogercbe/detective
After the installation add the ServiceProvider to the providers array in your config/app.php
file.
Rogercbe\Detective\DetectiveServiceProvider::class,
Finally to publish the config files use:
php artisan vendor:publish
This will create a detective.php
file inside your config/
directory in order to override default configuration.
WIP
You are more than welcome to contribute to the package by submitting a Pull Request.
The MIT License (MIT). Please see License File for more information.