#5.1 One to Many & One to One Polymorphic Relationships | Laravel Eloquent Relationships

  Рет қаралды 18,211

QiroLab

QiroLab

Күн бұрын

In the #Laravel Eloquent Relationships, we have seen standard one-to-one, one-to-many, many-to-many, and has-many-through relations. Next, in this video, we will see polymorphic relationships. It is not so common, but very powerful when it is needed.
In this video, you will learn,
✔ One To One (Polymorphic)
✔ One To Many (Polymorphic)
𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐄𝐥𝐨𝐪𝐮𝐞𝐧𝐭 𝐑𝐞𝐥𝐚𝐭𝐢𝐨𝐧𝐬𝐡𝐢𝐩𝐬 𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭
• Laravel Eloquent Relat...
Also, follow us on:
𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: qirolab
𝐓𝐰𝐢𝐭𝐭𝐞𝐫: / qirolab

Пікірлер: 23
@exty_oficial
@exty_oficial Ай бұрын
Excelente, muy clara la explicación y el ejemplo.
@steeOnFire
@steeOnFire Жыл бұрын
thank you for your effort ! verry helpfull
@QiroLab
@QiroLab Жыл бұрын
Thank you! Cheers!
@allahyar8709
@allahyar8709 3 жыл бұрын
fantastic video, thank you
@QiroLab
@QiroLab 3 жыл бұрын
Glad you liked it!
@petritmekuli
@petritmekuli 3 жыл бұрын
Great tutorial, thank you.
@Ehsankhan0577
@Ehsankhan0577 3 жыл бұрын
nice tutorial.........thanks
@saeedahmedsiddiqi3766
@saeedahmedsiddiqi3766 4 жыл бұрын
Cant we add a field in dbtable like "commentType" and save which type of comment inside it? Like for Videocomment - Video & for post - post? or we can set any numeric value as well like 1 for video and 2 for post???
@juliojairfpv6217
@juliojairfpv6217 3 жыл бұрын
Excellent!
@QiroLab
@QiroLab 3 жыл бұрын
Thank you! Cheers!
@AGAGARCIA
@AGAGARCIA 4 жыл бұрын
Great job
@QiroLab
@QiroLab 4 жыл бұрын
Glad you like it!
@MahbodHastam
@MahbodHastam 4 жыл бұрын
whats your database manager app?!
@bhaveshgupta1232
@bhaveshgupta1232 2 жыл бұрын
sir which database u r using
@QiroLab
@QiroLab 2 жыл бұрын
MySql
@may4223
@may4223 3 жыл бұрын
thank
@QiroLab
@QiroLab 2 жыл бұрын
welcome
@redtroreborn9356
@redtroreborn9356 3 жыл бұрын
how to make an update method using morph?
@Shiffin11
@Shiffin11 4 жыл бұрын
hey, do you have any idea how the reverse structure would work ?? for ex: we have the morphTo model record created first- let's say we have a case where we create App\User model which will have MorphOne relation to App\EmployeeDetail and App\FreelancerDetail so in this case we have our Users registering first and based on their profile is when we add data to the concerned tables of either EmployeeDetail or FreelancerDetail, or it can even be like Admin or User on the User Table.. hope you understood what am trying to convey.. have you ever come across a need for shaping such a structure ??? let me know.. thanks..!!
@sadanandmasurkar6668
@sadanandmasurkar6668 3 жыл бұрын
hi sir could you please make a tutorial on other concepts on relationship like (join, query on model,multiple eager loading model(and query on specific one))
@QiroLab
@QiroLab 3 жыл бұрын
noted. I will make videos on this as well. Thanks
@nahueljj
@nahueljj 4 жыл бұрын
how to update?
4 жыл бұрын
Thanks
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Eloquent Polymorphic Relations: Properly Explained
9:56
Laravel Daily
Рет қаралды 41 М.
Laravel 6 Advanced - e3 - Polymorphic Relationships
21:33
Coder's Tape
Рет қаралды 75 М.
Eloquent Relationships in Laravel - All you need to know!
21:38
coder awesome
Рет қаралды 42 М.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 146 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23