Download the PHP package jwohlfert23/laravel-api-query without Composer
On this page you can find all versions of the php package jwohlfert23/laravel-api-query. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jwohlfert23/laravel-api-query
More information about jwohlfert23/laravel-api-query
Files in jwohlfert23/laravel-api-query
Download jwohlfert23/laravel-api-query
More information about jwohlfert23/laravel-api-query
Files in jwohlfert23/laravel-api-query
Vendor jwohlfert23
Package laravel-api-query
Short Description Provides laravel scope to build query from request query params
License MIT
Package laravel-api-query
Short Description Provides laravel scope to build query from request query params
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-api-query
Build Eloquent Queries from Request Query Params
Installation
composer require jwohlfert23/laravel-api-query
Usage
This package is implemented as a trait, which provides the buildFromRequest
scope.
?sort=-id,name
is the same as:
?filter[name]=Bobby&filter[author.name][contains]=Bob
is the same as:
Note: this package doesn't use "whereHas", but rather performs left joins internally. However, the results should be the same as the above code.
Filters default to using the "equal" operator. These are the operators available to use in filtering (contains is use above).
- eq (=)
- gt (>)
- gte (>=)
- lt (<)
- lte (<=)
- contains
?with=author,comments
is the same as
All versions of laravel-api-query with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
nesbot/carbon Version ~3
illuminate/database Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
symfony/http-foundation Version ^7.0
kirschbaum-development/eloquent-power-joins Version ^4.0
nesbot/carbon Version ~3
illuminate/database Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
symfony/http-foundation Version ^7.0
kirschbaum-development/eloquent-power-joins Version ^4.0
The package jwohlfert23/laravel-api-query contains the following files
Loading the files please wait ....