Laravel Community Tools by Tighten

Tag "filters" tricks

34 tricks
Suppose you want to use Laravel query builder to search items in your db like this ?filter[search]=yourkeyword
SlimGee 1 year ago 12103
Sometimes, you want to click a column to refine the results of a table further without going through the filter menu on a Filament table.
techenby 2 years ago 19469
Easy way to create many filters aggregated in Eloquent with query string
wallacemax... 4 years ago 24235
This method list out all the registered middleware in laravel
sanjok1988 5 years ago 22295
If you want your search functionality to be dynamic as possible to avoid code repetitions, you can use this trait directly in your models
kissartisa... 7 years ago 11919
This a simple way to use wilcard routing, for specific options.
neftaliyag... 7 years ago 3600
First you create a file called Cors.php in app/Http/Middleware, then you register the middleware in the app/Http/Kernel.php file. If you want, you can change the default values adding the keys CORS_ALLOW_METHODS, CORS_ALLOW_ORIGINS, CORS_ALLOW_HEADERS and CORS_MAX_AGE to your .env file. Simple as that! This class is based on spatie/laravel-cors package.
lcdss 8 years ago 5356
Some functions, that help u get readable number. For example: 5145=>5,1K 3465645=>3,4M 4544353454=>4.5B 345,45=>345
andrii-chy... 8 years ago 4360
Remove tags in controller with excepts fields https://gist.github.com/oLDu67/10863c9f51064d1d9390016b28143f85
racibaz 8 years ago 10963