Laravel Eloquent | Many to many relationship from zero to hero .

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • To support the channel on Patreon: / thanks-coffee-208174 Learn and dive into many to many relationship in Laravel
    Like , Share, and subscribe is great support .

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

  • @FadiFindakly-z2e
    @FadiFindakly-z2e 11 месяцев назад +1

    Great content, especially the "sync" function!

  • @lyhourtte
    @lyhourtte 7 месяцев назад

    best video, short and detail.

  • @duartecancela
    @duartecancela 3 месяца назад

    Thank you very much helps me a lot!

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

    I 've been two weeks with my problem
    finally I found someone solve it
    Thank you so much 💙

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

      Thank you too , Happy to help :)

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

    so if i have a diffrent table name and foreign keys like i'm not following laravel naming convention how would i know in which order should i define my foreign key in my model.. like which key should come first.?

  • @w4xccino
    @w4xccino 7 месяцев назад +2

    Best video of Many To Many relationships! 😊

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

    thankkk u mannn u just saved me with this videoo

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

    very usefull for me, thank you sir

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

    Pls how to filter categories??

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

    nice, simple and clearly explained, thanks!

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

    cool

  • @حاتم-و2ج
    @حاتم-و2ج 7 месяцев назад

    --create ? what's next after --create

    • @laravelboy
      @laravelboy  7 месяцев назад

      in which minute ?

    • @حاتم-و2ج
      @حاتم-و2ج 7 месяцев назад

      @@laravelboy never mind i found it , thank you for response

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

    Nice work

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

    Awesome

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

    Hi,
    I did all my database with phpmyadmin and now i need to deploy my app so i have to work about the migration files.
    I still cant figure how you declare relationship in migration, i try this : $table->foreign('produit_id')->references('id')->on('produits'); (on my table "detail_command") , but the relationship is not created, can you help ?

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

      According to you table name the relation will be between detail model and command model .
      Then you must follow rule of naming pivot table (must be ordered alphabetically ) then you must change your table name from detail_command to command_detail , because C letter is before D letter :)

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

      @@laravelboy i need to deploy my app so i need to create migration so when i launch "php artisan migrate" my database and RELATION are created.
      The problem is that i only have my database created and not the relationship between table