Download the PHP package jasonstealer/laravel-query-builder without Composer
On this page you can find all versions of the php package jasonstealer/laravel-query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jasonstealer/laravel-query-builder
More information about jasonstealer/laravel-query-builder
Files in jasonstealer/laravel-query-builder
Package laravel-query-builder
Short Description Easily build Eloquent queries from API requests
License MIT
Homepage https://github.com/spatie/laravel-query-builder
Informations about the package laravel-query-builder
Build Eloquent queries from API requests
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.
Basic usage
Filter a query based on a request: /users?filter[name]=John
:
Including relations based on a request: /users?include=posts
:
Sorting a query based on a request: /users?sort=id
:
Read more about sorting features like: custom sorts, sort direction, ...
Works together nicely with existing queries:
Selecting fields for a query: /users?fields[users]=id,email
Read more about selecting fields.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
Read the installation notes on the docs site: https://spatie.be/docs/laravel-query-builder/v5/installation-setup.
Documentation
You can find the documentation on https://spatie.be/docs/laravel-query-builder/v5.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the media library? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Upgrading
Please see UPGRADING.md for details.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Credits
- Alex Vanderbist
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-query-builder with dependencies
illuminate/database Version ^9.0
illuminate/http Version ^9.0
illuminate/support Version ^9.0
spatie/laravel-package-tools Version ^1.11