Laravel One to One Relationship | Eloquent One to One | Laravel 9 Tutorial for Beginners

  Рет қаралды 4,111

Code With Dary

Code With Dary

Күн бұрын

Пікірлер: 16
@somethingmysterious58
@somethingmysterious58 2 жыл бұрын
nice content. Please make a video on broadcasting(pusher) using laravel 9 "vite". Also please make a detailed video on vite how it is different from mix
@codewithdary
@codewithdary 2 жыл бұрын
Noted! Thank you Junaid.
@pdep
@pdep 2 жыл бұрын
Nice one Dary! 👍
@codewithdary
@codewithdary 2 жыл бұрын
Thank you Palma!
@taiwoadebola5617
@taiwoadebola5617 2 жыл бұрын
Bro your channel is underrated
@codewithdary
@codewithdary 2 жыл бұрын
I appreciate that Taiwo!
@taiwoadebola5617
@taiwoadebola5617 2 жыл бұрын
@@codewithdary pls could you make a video on laravel sanctum. I have seen your video on laravel passport. And possible a full stack with vue
@pascalwesolek
@pascalwesolek 2 жыл бұрын
Hi Dary! I really appreciate the tutorials. I wonder what's best practice on extending the user table. I was thinking of creating a extra User Info table with a one-to-one relationship to give it more flexibility without always updating the user table. I that a good idea or is it better just to keep it to one user table and add extra field there? Thanks!
@codewithdary
@codewithdary 2 жыл бұрын
Definitely agree with that! A simple example might be the image that's related to a post as well. You could just create a post_image table where you store the post_id and the image url.
@EHSUNATARIM
@EHSUNATARIM Жыл бұрын
methods edit and update is Empty on github repo could you publish it please
@muhammadabrarjaved1062
@muhammadabrarjaved1062 2 жыл бұрын
Hi I did all the things same but my app is not updating the meta data. so if anyone can help please let me know how to update the meta data ?
@codewithdary
@codewithdary 2 жыл бұрын
Have you looked into the source code Muhammad?
@EHSUNATARIM
@EHSUNATARIM Жыл бұрын
@@codewithdary source code is empty Dary im looking for a solution as well for edit and update
@lyricsremix7884
@lyricsremix7884 Жыл бұрын
the hasOne relationship didn'twork for me until i specified the foreign key return $this->hasOne(PostMeta::class, 'post_id'); i still dont get it, any thoughts ?
@codewithdary
@codewithdary Жыл бұрын
Eloquent determines the foreign key of the relationship based on the parent model name. This means that something is not correct in your relationship.
@VKMilling
@VKMilling Жыл бұрын
@@codewithdary I had to do the same. hasOne(PostMeta::class, 'post_id') in order for it to return the stored meta info.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 17 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 3,4 МЛН
Become a PRO at Using Components in Laravel
32:51
Code With Dary
Рет қаралды 38 М.
Laravel Migrations: Change Foreign Key - Add cascadeOnDelete()
4:55
Introduction To Eloquent | Laravel For Beginners | Learn Laravel
45:20
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 31 М.
Laravel 10 full course for beginner -  Help Ticket Project - has many relationship
11:59
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 17 МЛН