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
Create engaging surveys on your tablet or computer with ease. Icon
Create engaging surveys on your tablet or computer with ease.

Choose any of our carefully designed themes, or easily customize colors, fonts, and more to reflect your brand's true look and feel.

Create great-looking surveys, forms, polls, voting, questionnaires, NPS, customer satisfaction, customer experience, employee satisfaction surveys... on your computer or tablet, customize the look of your survey however you like, & display collected data with eye-catching and insightful graphics.
Learn More
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