NEW! Laravel Eloquent: The Expert Level
November 2022 / 1 h 53 min / Laravel 9
IMPORTANT NOTICE: Since September 2022, I'm moving from this Teachable platform to my own LaravelDaily.com with this course and even more premium tutorials there. So, please subscribe to yearly/monthly membership there, this Teachable platform will not get new content anymore.
With any questions about the membership, email me [email protected]
The no.1 topic of Laravel-related questions I get is about Eloquent.
- How to query X?
- What's the best structure of a relationship?
- How to customize X in Models?
- etc.
So, in this 2-hour course, you will find many answers to these and other questions.
Also, you'll discover a lot of Eloquent "hidden gems" that you didn't know before, to perform some database operations in a shorter way.
We'll talk about Model structure, creating/selecting records, advanced relationships, and more.
So, do you want to get to the next level in your Eloquent knowledge? Join me inside the course!
Your Instructor
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.
Course Curriculum
-
Previewphp artisan make:model - Less-Known Possible Options (4:04)
-
PreviewSingular or Plural? What about multiple words? (3:17)
-
PreviewSaving a Model: $fillable or $guarded? (3:50)
-
StartModel Properties: Tables, Keys, Increments, Pages and Dates (4:10)
-
StartNew in Laravel 9.21: php artisan model:show (1:20)
-
StartCustomize Model Default Template with Stubs (1:37)
-
StartModel $casts: Dates, Enum and More (3:44)
-
StartFirstOrCreate, and Other 2-in-1 Methods (4:02)
-
StartWasCreated, IsDirty and Other Checks If Model Was Changed (2:57)
-
StartModel Observers and Their Methods (3:43)
-
StartAttributes: Accessors and Mutators with New/Old Syntax (7:00)
-
Starttouch() Method To Work With updated_at (3:47)
-
StartAPI Docs and 3 More Random Methods (2:09)
-
Startfind(), all(), first() and Their Extra Options (2:59)
-
StartwhereDate() and other whereX Methods (3:17)
-
StartBrackets Between "and" / "or" Conditions (2:52)
-
StartLocal and Global Scopes for Repeating Conditions (4:15)
-
StartInstead of Multiple If-Else, Use When() (2:13)
-
StartRaw Queries as a Last Resort (2:14)