This package allows you to filter, sort and include eloquent relations based on a request. The QueryBuilder used in this package extends Laravel's default Eloquent builder. This means all your favorite methods and macros are still available. Query parameter names follow the JSON API specification as closely as possible. The filter query parameters can be used to add where clauses to your Eloquent query. Out of the box we support filtering results by partial attribute value, exact attribute value or even if an attribute value exists in a given array of values. For anything more advanced, custom filters can be used. Sometimes more advanced filtering options are necessary. This is where scope filters, callback filters and custom filters come in handy. Scope filters allow you to add local scopes to your query by adding filters to the URL. This works for scopes on the queried model or its relationships using dot-notation.

Features

  • Filter a query based on a request
  • Sort a query based on a request
  • Works together nicely with existing queries
  • You can set in configuration file to not throw an InvalidFilterQuery exception when a filter is not set in allowedFilter method
  • Exact or partial filters for related properties
  • You can even pass multiple parameters to the scope by passing a comma separated list to the filter

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Laravel Query Builder

Laravel Query Builder Web Site

Other Useful Business Software
Get the most trusted enterprise browser Icon
Get the most trusted enterprise browser

Advanced built-in security helps IT prevent breaches before they happen

Defend against security incidents with Chrome Enterprise. Create customizable controls, manage extensions and set proactive alerts to keep your data and employees protected without slowing down productivity.
Download Chrome
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel Query Builder!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Software Development Software

Registered

2022-03-15