mnabialek / laravel-eloquent-filter Goto Github PK
View Code? Open in Web Editor NEWFilter Eloquent data
License: MIT License
Filter Eloquent data
License: MIT License
Hey there,
thank you for your awesome package
there's one thing I couldn't figure out on my own. If you look at thist file
mnabialek/laravel-eloquent-filter/src/Parsers/SimpleQueryParser.php Line:44
there's a flag for ignoring empty values but I can't seem to find the right place to change it
Following the steps in your ReadMe
Hi,
is this library compatible with Laravel 8?
http://localhost/users?id[]=2&id=5 - should display user with id = 2 and user with id = 5
This results in showing me entry with id = 5 only
work fine on */slider?rank=10 but when i submit my form get request generate
*/slider?title=&description=&rank=10
how can i by pass empty parameter.
As I was finally able to implement my needed filters using your plugin I again come across the question of pagination. On my site I got a formw ith method="get" to create my desired URL to apply the filters.
Now Laravel ships with a pagination support, which will not respect this form.
It comes with a ->appends() method on my collection, but is there any way to automate this with your plugin?
How can I achieve a filter with 2 values (e.g. price):
I want to filter results by a minimum and/or maximum price:
My model has a 'price' column, from my form I get 'min_price' and 'max_price', which is appended to the URL.
Sorry for bothering again ;D
$ composer require mnabialek/laravel-eloquent-filter
Output:
Using version ^0.1.1 for mnabialek/laravel-eloquent-filter
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for mnabialek/laravel-eloquent-filter ^0.1.1 -> satisfiable by mnabialek/laravel-eloquent-filter[v0.1.1].
- Conclusion: remove laravel/framework v7.4.0
- Conclusion: don't install laravel/framework v7.4.0
- mnabialek/laravel-eloquent-filter v0.1.1 requires laravel/framework 5.* -> satisfiable by laravel/framework[5.0.x-dev, 5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.x-dev, 5.8.x-dev].
- Can only install one of: laravel/framework[5.5.x-dev, v7.4.0].
- Can only install one of: laravel/framework[5.6.x-dev, v7.4.0].
- Can only install one of: laravel/framework[5.7.x-dev, v7.4.0].
- Can only install one of: laravel/framework[5.8.x-dev, v7.4.0].
- laravel/framework 5.2.x-dev conflicts with laravel/framework[v7.4.0].
- laravel/framework 5.3.x-dev conflicts with laravel/framework[v7.4.0].
- laravel/framework 5.4.x-dev conflicts with laravel/framework[v7.4.0].
- Can only install one of: laravel/framework[5.0.x-dev, v7.4.0].
- Can only install one of: laravel/framework[5.1.x-dev, v7.4.0].
- Installation request for laravel/framework (locked at v7.4.0, required as ^7.0) -> satisfiable by laravel/framework[v7.4.0].
Installation failed, reverting ./composer.json to its original content.
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.