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

Поделиться
HTML-код
  • Опубликовано: 13 июл 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.

Комментарии • 60

  • @musiclovers8488
    @musiclovers8488 2 года назад +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

  • @AhsanKhan89
    @AhsanKhan89 Год назад +3

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

    • @ajay-yadav
      @ajay-yadav  Год назад +1

      Glad you liked it

    • @AhsanKhan89
      @AhsanKhan89 Год назад +1

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

  • @mihirpatel6758
    @mihirpatel6758 2 года назад +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.

    • @ajay-yadav
      @ajay-yadav  2 года назад +1

      made my day 😊🙏thank you

  • @ashutoshsharma5173
    @ashutoshsharma5173 Год назад

    Awesome explanation 👍

  • @ParvinderSingh013
    @ParvinderSingh013 Год назад +2

    Bro onDelete cascade kya work krta h

  • @NasirKhan-jy3gp
    @NasirKhan-jy3gp Год назад

    😍 love you brother this helped me alote

  • @tejassethi9319
    @tejassethi9319 2 года назад

    Very well explain! Thank you so much.

  • @syednaveedjaffri8539
    @syednaveedjaffri8539 2 года назад +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...

  • @xbeast7585
    @xbeast7585 6 месяцев назад

    Thank You So Much Sir ❤

  • @omprakashdevra3314
    @omprakashdevra3314 Год назад

    Nice explanation

  • @mazekaro9798
    @mazekaro9798 5 месяцев назад

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

  • @muhammadzeeshan3911
    @muhammadzeeshan3911 6 месяцев назад

    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  6 месяцев назад

      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 6 месяцев назад

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

  • @rehmanghani6726
    @rehmanghani6726 Год назад +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

  • @akSingh_120
    @akSingh_120 11 месяцев назад

    nice explained.

  • @SachinSharma-by7gw
    @SachinSharma-by7gw Год назад

    Easy to understand

  • @viral-video-studio
    @viral-video-studio Год назад

    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

  • @techsavy6724
    @techsavy6724 Год назад

    Thanks its helps alot

  • @narayankatiha
    @narayankatiha 9 месяцев назад

    great video on relationships

    • @ajay-yadav
      @ajay-yadav  9 месяцев назад +1

      Glad you enjoyed it

  • @syednaveedjaffri8539
    @syednaveedjaffri8539 2 года назад

    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

  • @varshilshah8212
    @varshilshah8212 Год назад

    Nice one brother

  • @subhajitghorai8835
    @subhajitghorai8835 11 месяцев назад

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

  • @manishkumar-fe8rj
    @manishkumar-fe8rj 2 года назад

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

  • @sachinKumar-hu9gj
    @sachinKumar-hu9gj 2 года назад

    great video broo

  • @user-qe9ro4kq8x
    @user-qe9ro4kq8x 11 месяцев назад

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

  • @learnbook-dz6ou
    @learnbook-dz6ou 3 месяца назад

    what is the categories() in controller?

  • @rajeshsaini2600
    @rajeshsaini2600 Год назад

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

    • @ajay-yadav
      @ajay-yadav  Год назад +1

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

  • @AsmaKhan-qf6gd
    @AsmaKhan-qf6gd 10 месяцев назад

    SUper amazing

    • @ajay-yadav
      @ajay-yadav  10 месяцев назад

      Glad you think so!

  • @muthurams4809
    @muthurams4809 Месяц назад

    Bro how to create a index in mysql through laravel

  • @sunilnegi9255
    @sunilnegi9255 2 года назад

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

  • @amarvaish6550
    @amarvaish6550 4 месяца назад

    Bro what was the role of category_post table

  • @pujaroychowdhury5307
    @pujaroychowdhury5307 Год назад

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

    • @ajay-yadav
      @ajay-yadav  Год назад +1

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

  • @vikassharma5339
    @vikassharma5339 2 года назад

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

  • @hardikphotos-fx3xz
    @hardikphotos-fx3xz Год назад +1

    many to many is not good

  • @futureOptionAlibaba
    @futureOptionAlibaba Год назад +1

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

    • @ajay-yadav
      @ajay-yadav  Год назад +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 2 года назад

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

    • @ajay-yadav
      @ajay-yadav  2 года назад +1

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