No video

30 Days to Learn Laravel, Ep 11 - Two Key Eloquent Relationship Types

  Рет қаралды 5,906

Laracasts

Laracasts

Күн бұрын

For day 11, we'll focus exclusively on two Eloquent relationship types: belongsTo() and hasMany(). As you'll quickly find, these two will take you a very, very long way.
Watch Full Series on: laracasts.com/...
Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: laracasts.com
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way

Пікірлер: 17
@TrikNgonlen
@TrikNgonlen 4 ай бұрын
AWESOME! "This relationship type is great for something, this relationship type is great for something, and this relationship type is great for something". I love this kind of additional explanation. I work for a quarry company, I really need that kind of explanation. I'm learning Laravel, because I want to manage whole of the company data with Laravel. For me, as a newbie, Eloquent Relationship Type topic is the most interesting part in Laravel.
@whisperscribe
@whisperscribe 2 ай бұрын
Thanks Jeffrey, managed to make some stuff that I tought it was really hard by myself!
@mandjivatuva
@mandjivatuva 4 ай бұрын
Perfect explanation. Thanks.
@diegosk8zero
@diegosk8zero 4 ай бұрын
The relationship: belongsToMany is so powerfull and the same time easy to use and thats why I love Laravel. Thanks for this serie :D See u next epsode
@SatoKazumaLvl
@SatoKazumaLvl 3 ай бұрын
thank you sir, youre really an awesome teacher
@MuhammadShoaib-h7r
@MuhammadShoaib-h7r Ай бұрын
In prev. video we've implemented Eloquent Relation b/w User and Employer Model, but here it's basically b/w Job and Employer Model and that's understood by first API call being run that produced the response having data of job but containing empoyer_id as foreign key. So, it'll clear the confusion for those who're facing any issue. Regards,
@seddeknadhem5638
@seddeknadhem5638 24 күн бұрын
Let's go baby
@alfonsoleon5392
@alfonsoleon5392 3 ай бұрын
Great explanation!
@grugbrain
@grugbrain 4 ай бұрын
Nice. Please make a series of tutorial to cover all Eloquent relationships. 😘
@imambs521
@imambs521 4 ай бұрын
Nice and simple 👍
@meme-swift
@meme-swift Ай бұрын
@jeffery sir their is one issue is that > $employer->job; WARNING Undefined variable $employer. WARNING Attempt to read property "job" on null.
@MuhammadShoaib-h7r
@MuhammadShoaib-h7r Ай бұрын
after implementing the relation, just migrate again and then call the API for $job->employer It'll probably solve your issue.
@anangyoga1381
@anangyoga1381 3 ай бұрын
I hasMany thanks for you.
@kerimtim
@kerimtim 2 ай бұрын
My example is A man can have multipe wives, while a wife can only have a one husband? Is it called one to many relationship?
@abdomahmoud8769
@abdomahmoud8769 Ай бұрын
yea a man hasMany wifes, however a wife belongsTo a man
@EnimaIffets
@EnimaIffets 4 ай бұрын
nice
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 139 М.
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 17 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 28 МЛН
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 42 М.
Enums considered harmful
9:23
Matt Pocock
Рет қаралды 203 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 145 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 404 М.
Eloquent Polymorphic Relations: Properly Explained
9:56
Laravel Daily
Рет қаралды 40 М.
Refactor "Senior" PHP Code with Early Returns
12:09
Laravel Daily
Рет қаралды 26 М.
30 Days to Learn Laravel, Ep 10 - Model Factories
19:17
Laracasts
Рет қаралды 7 М.
Laravel 10 full course for beginner -  what is eloquent orm
11:05
Bitfumes - AI & LLMs
Рет қаралды 24 М.
Advanced Golang: Channels, Context and Interfaces Explained
22:17
Code With Ryan
Рет қаралды 116 М.