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 .
Great content, especially the "sync" function!
best video, short and detail.
Thank you very much helps me a lot!
I 've been two weeks with my problem
finally I found someone solve it
Thank you so much 💙
Thank you too , Happy to help :)
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.?
Best video of Many To Many relationships! 😊
thankkk u mannn u just saved me with this videoo
very usefull for me, thank you sir
Pls how to filter categories??
nice, simple and clearly explained, thanks!
cool
--create ? what's next after --create
in which minute ?
@@laravelboy never mind i found it , thank you for response
Nice work
Awesome
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 ?
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 :)
@@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