Laravel Mastery: Advanced Eloquent relationships
Polymorphic relations, has-many-through and custom pivot models in Eloquent, with working examples and the eager loading that keeps them fast.
Laravel Mastery Series
Laravel techniques from production work, from Eloquent relationships and middleware to deployment and performance tuning.
6 parts in this series.
Polymorphic relations, has-many-through and custom pivot models in Eloquent, with working examples and the eager loading that keeps them fast.
Custom Artisan commands for imports, clean-ups and deployments: arguments, scheduling, locking, testing, and making destructive commands safe to run.
Laravel middleware beyond the basics: parameters, groups, terminating middleware, multi-tenant context and layered authentication, with tests for each.
Laravel events and listeners that keep side jobs out of your controllers: queued listeners, subscribers and broadcasting, with a trading platform example.
More series from the blog.