Laravel Eloquent Relationships | One to One | One to Many | Many to Many Eloquent in HINDI Part #1

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • In this video, I have discussed laravel eloquent relationships - one to one, one to many, and many to many. One user has a contact detail page so both tables are related to each other. user has one contact detail entry and contact detail belongs to a user.
    for one to many relationships, the user has many posts and a post belongs to a user(author).
    Many to many relationships- here we need 3 table posts, categories and category_post table -post belongs to many categories and a category belongs to many posts also.
    Laravel Eloquent Relationships : One to One, One to many, Many to Many eloquent in hindi.
    💥 OneToOne , OneToMany & ManyToMany💥
    ⌨️ (0:00) Introduction
    ⌨️ (00:33) One To One Relationship
    ⌨️ (6:50) One To Many Relationship
    ⌨️ (11:40) Many To Many Relationship
    ⌨️ (17:48) Thank you
    Our Playlist:
    Computer Facts: • Computer facts
    Laravel User Management System :
    • Laravel User Managemen...
    Laravel Auth System :
    • Laravel Multi Auth System
    Laravel And Vuejs
    • Laravel And Vuejs
    Laravel Eloquent Relationships
    • Laravel Eloquent Relat...
    #ORM #eloquent #ormRelationships #OneToOne #OneToMany #ManyToMany
    Please subscribe to my channel and share the video with your friends.

Komentáře • 60

  • @mihirpatel6758
    @mihirpatel6758 Před 2 lety +2

    Thanks Ajay, You are doing good for our nation to make series in Hindi and other thing you just not create small video and finished topic like other do, you cover each and every small detail, which I like most. keep doing laravel tutorial's. You deserve appreciation.

  • @AhsanKhan89
    @AhsanKhan89 Před rokem +3

    I was searching for this quick overview of relationships in Laravel. Excellent video.

    • @ajay-yadav
      @ajay-yadav  Před rokem +1

      Glad you liked it

    • @AhsanKhan89
      @AhsanKhan89 Před rokem +1

      can you please make a video on CRUD application using Repository pattern and sanctum api?

  • @musiclovers8488
    @musiclovers8488 Před 2 lety +3

    bhai aapne sikhaya mast h ... par bhagte bahut jyada tez ho... thoda explain bhi kiya karo ye soch kar ki dekhne wale beginners honge.. thankyou bhai

  • @syednaveedjaffri8539
    @syednaveedjaffri8539 Před 2 lety +1

    Dear Ajay.i am a beginner.i have watched many tutorials on laravel. but seriously, u have builtin capabilities to precisely explain. waiting for CRUD...

  • @ashutoshsharma5173
    @ashutoshsharma5173 Před 2 lety

    Awesome explanation 👍

  • @ParvinderSingh013
    @ParvinderSingh013 Před rokem +2

    Bro onDelete cascade kya work krta h

  • @muhammadzeeshan3911
    @muhammadzeeshan3911 Před 6 měsíci

    Such a nice expaination. This channel is full of to the point knowledge In my view point the most underrated channel of laravel thankyou very much sir for your videos

    • @ajay-yadav
      @ajay-yadav  Před 6 měsíci

      Thank you for the kind words! I'm glad you find the content helpful. If you have any topics you'd like covered, let me know. Appreciate your support!

    • @muhammadzeeshan3911
      @muhammadzeeshan3911 Před 6 měsíci

      @@ajay-yadav do you have any Laravel developors community

  • @tejassethi9319
    @tejassethi9319 Před 2 lety

    Very well explain! Thank you so much.

  • @viral-video-studio
    @viral-video-studio Před rokem

    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-relationship.categories_post' doesn't exist
    ye error arha hai last me jab post with categories kr rhe hai to

  • @omprakashdevra3314
    @omprakashdevra3314 Před rokem

    Nice explanation

  • @xbeast7585
    @xbeast7585 Před 7 měsíci

    Thank You So Much Sir ❤

  • @SachinSharma-by7gw
    @SachinSharma-by7gw Před rokem

    Easy to understand

  • @NasirKhan-jy3gp
    @NasirKhan-jy3gp Před rokem

    😍 love you brother this helped me alote

  • @mazekaro9798
    @mazekaro9798 Před 6 měsíci

    Nice Ajay Bhai
    Ur video is always helpful for me
    Thanks Ajay Bhai

  • @akSingh_120
    @akSingh_120 Před 11 měsíci

    nice explained.

  • @rehmanghani6726
    @rehmanghani6726 Před rokem +1

    Nice video Ajay 👍 it was explained very well.
    I have a question for you.
    Why do we use attach or sync method in Many to Many relationship?
    Thank you

  • @subhajitghorai8835
    @subhajitghorai8835 Před rokem

    multiple database table relation data count using withCount. how to do this, please help me

  • @syednaveedjaffri8539
    @syednaveedjaffri8539 Před 2 lety

    I have very basic question.. which one i use to in laravel application? JQuery or VUE?? both are new to me. please suggest/recommend me. thanks

  • @user-qe9ro4kq8x
    @user-qe9ro4kq8x Před 11 měsíci

    In this relationship how to fetch data in blade.pho file from controller

  • @narayankatiha
    @narayankatiha Před 9 měsíci

    great video on relationships

  • @techsavy6724
    @techsavy6724 Před rokem

    Thanks its helps alot

  • @learnbook-dz6ou
    @learnbook-dz6ou Před 3 měsíci

    what is the categories() in controller?

  • @manishkumar-fe8rj
    @manishkumar-fe8rj Před 2 lety

    Hello sir great👍👍👍
    Please make one video for phpunit testing in laravel 😊😊

  • @varshilshah8212
    @varshilshah8212 Před rokem

    Nice one brother

  • @sachinKumar-hu9gj
    @sachinKumar-hu9gj Před 2 lety

    great video broo

  • @muthurams4809
    @muthurams4809 Před měsícem

    Bro how to create a index in mysql through laravel

  • @rajeshsaini2600
    @rajeshsaini2600 Před 2 lety

    Hello, sir I am watching your videos but I have a small issue that ..... which version did you use?

    • @ajay-yadav
      @ajay-yadav  Před 2 lety +1

      Most of the laravel versions support these relationships... But in my case it's laravel 8 I guess

  • @AsmaKhan-qf6gd
    @AsmaKhan-qf6gd Před 11 měsíci

    SUper amazing

  • @pujaroychowdhury5307
    @pujaroychowdhury5307 Před rokem

    $user = User::with('contact')->first();
    // return $user->contact;
    dd($user->toArray());
    why is the contact show null?

    • @ajay-yadav
      @ajay-yadav  Před rokem +1

      It should not.... Just verify if first user has contact entry in the contacts table

  • @sunilnegi9255
    @sunilnegi9255 Před 2 lety

    sir laravel complete series bnaiye na i am waiting you laravel complete series please make this series asap

  • @amarvaish6550
    @amarvaish6550 Před 4 měsíci

    Bro what was the role of category_post table

  • @vikassharma5339
    @vikassharma5339 Před 2 lety

    rate of speed jyda h for beginner ke liye kindly slow rate of speed

  • @hardikphotos-fx3xz
    @hardikphotos-fx3xz Před rokem +1

    many to many is not good

  • @futureOptionAlibaba
    @futureOptionAlibaba Před rokem +1

    Agar itni jaldi hi to Kyu time pass ke lye video banate ho

    • @ajay-yadav
      @ajay-yadav  Před rokem +2

      hmm sorry bro ... phle mujhe lgta tha ki logo ko jldi jldi sikhna rhta h ... but ab maine kafi sudhar kiya h ... aap meri latest videos me sudhar dekh skte hn

  • @debanjanabiswas8040
    @debanjanabiswas8040 Před 2 lety

    Meri UserSeeder.php pr 'name' => 'test' nhi le rahi hai, ParseError bol rahi hai syntax error, unexpected '=>' (T_DOUBLE_ARROW)

    • @ajay-yadav
      @ajay-yadav  Před 2 lety +1

      make sure you write in this way (array)
      $admin = User::create([ 'name'=>'Admin','email' => 'email', .....]);