ambengers / laravel-query-filter Goto Github PK
View Code? Open in Web Editor NEWLaravel query filter provides an elegant way to filter your eloquent models via the request query string.
License: MIT License
Laravel query filter provides an elegant way to filter your eloquent models via the request query string.
License: MIT License
Hi,
I tried Query filter with Livewire V3 & it is not compatible, especially with a new method of Livewire Pagination.
I created a model without timestamps (public $timestamps = false;)
but I have an error for returning resualt via filter:
Column not found: 1054 Unknown column 'created_at' in 'order clause'
How to solve this error without timestamps in my filter?
Just like sort filter
eg: search=fullname|john
Thank You
Using example on the Laravel Has Many Through docs
projects
id - integer
name - string
environments
id - integer
project_id - integer
name - string
deployments
id - integer
environment_id - integer
commit_hash - string
public function index(ProjectFilters $filters)
{
$results = $project->deployments()->filter($filters);
// On the results, the id of environments will override the id of the deployments
}
This is because HasManyThrough class overrides the get()
call on the Relation class.
Respond with HTTP 400 error if an invalid filter and/or loader was sent through the request. Make the option available in config.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.