Рет қаралды 10,305
This video will dive into Eloquent’s hasMany and hasOne Relationship in Laravel - Learn one of the most popular PHP frameworks for its advanced features, templating engine, fast commands and security.
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary
Want to learn more?
- Courses: / @codewithdary
📋 Table of Content
00:00 - Introduction
00:15 - hasManyThrough() Example
00:57 - hasManyThrough() Model & Migration
02:30 - Add Data In MySQL
03:54 - hasManyThrough() Relationship
06:12 - Printing Data In The UI
09:18 - Example hasOneThrough()
09:55 - hasOneThrough() Migration & Model
10:58 - Add Data In MySQL
12:25 - hasOneThrough() Relationship
13:57 - Printing Data In The UI
#laravel #laravel8 #php #hasMany #hasOne #eloquent