amochohan / advanced-eloquent-search-filters Goto Github PK
View Code? Open in Web Editor NEWAn example of how to implement advanced Eloquent search filters
An example of how to implement advanced Eloquent search filters
I really like your solution, but I don't see it working with complex queries. Let's say I join roles table. Roles table has a name column. Users table also has a name column.
Hello everyone, especially @amochohan
I have read your article titled 'Writing advanced Eloquent search query filters' on the 'Medium' site. It was very useful and inspired me to write a package for Laravel framework based on your article. It would be a pleasure to know what you think about the package. Thank you.
First of all, I'd like to thank @amochohan for the amazing article. I get into the trouble to use searchable filter for all kinds of models inside my own project. I mean, I've 3 models that I need to apply filter. How can I implement it?
I create a folder called 'Filters' below the app folders. Inside it, I write FilterInterface.php
. What I want is how to handle filter dynamically according to the model. I mean instead of hardcoding UserSearch, any models can use this searchable trait
Route::get('/search/{model}', [SearchsContrller::class, 'index'])
then according to model
call modelFilter
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.