Course released: October 2018
Course length: 3 h 55 min
Laravel version: 5.7
Notice: there's a newer updated version of this course, for Laravel 9, here.
4 hours of video about Eloquent!
After this course, you will become expert in creating relationships, querying data effectively and using less-known Eloquent features.
Eloquent is great for database operations, but over the years I've noticed that it is the most popular topic of questions on Twitter or forums like Laracasts, or my own blog Laraveldaily.com.
There are many typical questions like:
- Why this query doesn't return correct results?
- How to transform my SQL to Eloquent?
- Why this statement takes so long to execute?
- How to use eloquent relations in my particular situations? One-to-many or many-to-many? Or Polymorphic?
And the weirdest part is that I haven't found any course or book that answers all those questions with practical examples. So here we go, I'm trying to fill that gap.
In this course you will find videos with various less-known tips, more effective ways to use Eloquent, and also a lot of practical examples.
The course requires some fundamental Laravel and Eloquent knowledge, I won't cover the basics. It's not a course about Eloquent from zero, it's about a jump from junior to Expert. Will you join me on this journey?
Comments from students:
I consider myself a Laravel expert. Work with Laravel for around 7 years, sharing my thoughts on the YouTube channel "Laravel Daily": https://www.youtube.com/c/LaravelDaily
I also have written a Laravel Daily Blog for 5+ years.
Start"Magic" methods: FirstOrCreate() and other 2-in-1s (3:55)
StartModel Observers: "listening" to record changes (4:56)
StartAccessors and Mutators: Change Model Values (4:55)
StartDatabase Seeds and Factories: Prepare Dummy Data (10:27)
StartSeeds and Factories with Relationships (6:49)
StartCheck Methods/Properties in Eloquent API Docs (2:37)
StartAdvanced find() and all(): Methods and Parameters (4:36)
PreviewWhereX Magic Methods for Fields and Dates (4:16)
StartBrackets to Eloquent: (A and B) or (C and D) (3:26)
StartQuery Scopes: Where Conditions Applied Globally (11:10)
PreviewEloquent when(): More Elegant if-statement (3:31)
StartOrdering by Relationship: orderBy vs sortBy (2:45)
StartRaw Database Queries with Examples (2:52)