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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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