Рет қаралды 6,620
This video will show you how you could easily create the one to many relationship in Laravel. The example we're going to use in this video is with the Post and User class - Want to learn the most popular PHP framework? Laravel makes your development process a lot easier without sacrificing your applications functionalities.
📚 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/larav...
🔗 Useful links
- Laravel 8 Course: • Complete Laravel Tutor...
- Laravel Breeze: • Laravel Breeze Tutoria...
📋 Table of Content
00:00 - Introduction
01:17 - Installing Laravel Breeze
03:10 - Updating our routes
03:50 - Adding a foreign key constraint to the posts table
08:05 - Defining our user to post relationship
11:03 - Defining our post to user relationship
#laravel #framework #php #laravel9