Download the PHP package daveismyname/laravel-filters without Composer
On this page you can find all versions of the php package daveismyname/laravel-filters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daveismyname/laravel-filters
More information about daveismyname/laravel-filters
Files in daveismyname/laravel-filters
Package laravel-filters
Short Description Save and reuse query string based filters
License MIT
Homepage https://github.com/dcblogdev/laravel-filters
Informations about the package laravel-filters
Filters
A Laravel package for saving and reusing query based filtering.
Installation
Via Composer
In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:
You can publish the migration with:
After the migration has been published migrate it:
You can publish the config file with:
When published, the config/filters.php config file contains:
Model
Access filter model, to access the model reference this ORM model
Usage
Note this package expects a user to be logged in.
A routes example:
the get
accepts 2 optional params:
1) The name of the module/section ie users
2) The relative url to redirect to ie /admin/users
In demo.blade.php view:
Save a filter:
Remove a filter
Store a new filter
For the filter actions to run call run($module, $url)
Internally there are 3 methods that will be called based on the query string parameters:
When savefilter
exists in the url then storeFilter()
will run to store the filter.
Also storeFilter requires a filterTitle
parameter to give a name to the filter.
When savedfilter
exists in the url then applyFilter()
will return the filter stored.
When removefilter
exists in the url then deleteFilter()
will run to delete the filter.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Contributions are welcome and will be fully credited.
Contributions are accepted via Pull Requests on Github.
Pull Requests
-
Document any change in behaviour - Make sure the
readme.md
and any other relevant documentation are kept up-to-date. -
Consider our release cycle - We try to follow SemVer v2.0.0. Randomly breaking public APIs is not an option.
- One pull request per feature - If you want to do more than one thing, send multiple pull requests.
Security
If you discover any security related issues, please email [email protected] email instead of using the issue tracker.
License
license. Please see the license file for more information.
All versions of laravel-filters with dependencies
laravel/framework Version ^5.5|^5.6|^5.7|^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0