To support the channel on Patreon: / thanks-coffee-208174 To support the channel on Patreon: / thanks-coffee-208174 Buy me a coffee on Patreon: / thanks-coffee-208174 Laravel custom filter in 5 mins #freepalestine
Пікірлер: 9
@ripplesr56552 ай бұрын
Awesome. I believe this is just to show how to build a generic filter only. You can make it more verbose but great work to show how to build a generic filter in laravel.
@AbedAbugozahАй бұрын
looks good try to use more OOP to improve it didn't use trait
@minhazulislam98812 ай бұрын
Walaikum as-salam wa rahmatullahi wa barakahtuhu. #freepalestine #GazaGenoside
@bboydarknesz2 ай бұрын
Great! But you have to make sure that $filterable should be implemented too. And also, it is not too flexible as sometimes you only need a certain column to filter only or it will not be a very optimized query. Keep it up!
@srhanzd30222 ай бұрын
😍😍😍
@poipsm61192 ай бұрын
walaikum salam ..
@MuetzeOfficial2 ай бұрын
I would make filterable as a method so that you can also use request()->user()->isAdmin or something like that, for example. I always implement such methods in the controllers. A scope where request is passed would also be an alternative. This could then also be used in the models and set as default filterable() { return $this->fillable; } in the trait.
@kirayamato61282 ай бұрын
what extension did you use to show the errors in vscode?