Laravel: Be Careful with whereHas Performance in Eloquent

Quick video, comparing two Laravel queries that perform almost the same task – querying by relationship. WhereHas() or join()?

I have a full course “Better Eloquent Performance”:

– – – – –
Support the channel by checking out our products:
– Enroll in my Laravel courses: https://laraveldaily.teachable.com
– Try our Laravel QuickAdminPanel:
– Purchase my Livewire Kit:
– Subscribe to my weekly newsletter:


Leave a Reply

Your email address will not be published. Required fields are marked *