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

Поделиться
HTML-код
  • Опубликовано: 18 май 2020
  • 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
  • НаукаНаука

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

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

    Great tutorial, thank you.

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

    nice tutorial.........thanks

  • @Shiffin11
    @Shiffin11 3 года назад

    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..!!

  •  3 года назад

    Thanks

  • @allahyar8709
    @allahyar8709 3 года назад +1

    fantastic video, thank you

    • @QiroLab
      @QiroLab  3 года назад

      Glad you liked it!

  • @juliojairfpv6217
    @juliojairfpv6217 3 года назад

    Excellent!

    • @QiroLab
      @QiroLab  3 года назад

      Thank you! Cheers!

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

    thank you for your effort !
    verry helpfull

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

      Thank you! Cheers!

  • @AGAGARCIA
    @AGAGARCIA 3 года назад

    Great job

    • @QiroLab
      @QiroLab  3 года назад

      Glad you like it!

  • @saeedahmedsiddiqi3766
    @saeedahmedsiddiqi3766 3 года назад +1

    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???

  • @mahbodahmadi5715
    @mahbodahmadi5715 4 года назад

    whats your database manager app?!

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

    thank

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

      noted. I will make videos on this as well. Thanks

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

    how to make an update method using morph?

  • @nahueljj
    @nahueljj 3 года назад

    how to update?

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

    sir which database u r using