Code Monkey home page Code Monkey logo

laravel-eloquent-filter's People

Contributors

mnabialek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-eloquent-filter's Issues

Pagination

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?

Filter by range

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

cannot change value of ignoreEmptyFilters flag

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

not working on empty parameter value

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.

Not working with Laravel 7.4

$ 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.