Download the PHP package oscabrera/laravel-query-filters without Composer
On this page you can find all versions of the php package oscabrera/laravel-query-filters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oscabrera/laravel-query-filters
More information about oscabrera/laravel-query-filters
Files in oscabrera/laravel-query-filters
Package laravel-query-filters
Short Description A Laravel package for advanced query filtering and conditions.
License MIT
Homepage https://github.com/Oscabrera/laravel-query-filters
Informations about the package laravel-query-filters
Laravel Query Filters
A Laravel package for advanced query filtering and conditions.
Installation
Install the package via Composer:
Configuration (Optional)
You can publish the configuration file to customize the method name used for applying filters. This is optional, but it provides additional flexibility.
Publish the configuration file:
This will create a config/query-filters.php file in your Laravel application. You can modify this file to change the
method name:
Usage
Here's an example of how to use the QueryFilters in a controller:
Features
- Simple Conditions: Apply simple equality conditions.
- Array Conditions: Use whereIn conditions for columns.
- Triple Conditions: Apply conditions with specific operators.
- SubQueries: Use subqueries for complex filtering.
- Customizable Method Name: Change the method name for applying filters via configuration.
More Information
For more information, visit the documentation.
By following these instructions, you can easily integrate advanced query filtering into your Laravel applications, customize the filtering method name, and keep your code clean and maintainable.