Eloquent Query Builder Macros: Define Your Custom Methods
There’s a “trick“ on how you can define methods like “whereLike()“. See the example.
Links mentioned in the video:
- Original tweet:
- Original Gist:
- More videos about macros: @LaravelDaily/search?query=macro
- - - - -
Support the channel by checking out my products:
- My Laravel courses:
- Filament examples:
- Laravel QuickAdminPanel:
- Livewire Kit Components:
- - - - -
Other places to follow:
- My weekly Laravel newsletter:
- My personal Twitter:
1 view
19
3
2 months ago 00:09:40 4
Laravel Conventions/Guidelines from IxDF
3 months ago 00:04:02 1
NEW in Laravel : Eloquent Inverse Relations to Avoid N+1 Query
4 months ago 00:07:41 2
Laravel DB: Query BelongsTo 2-Levels Up - Direct Column?
5 months ago 00:05:00 2
8 Laravel Tools to Debug SQL Queries
5 months ago 00:03:51 1
Using whereAny() for cleaner queries in Eloquent | Laravel | Tutorial | Quick Win Wednesday #QWW