This is a deep dive into belongsToMany Relationships in Laravel with examples - from simple, to much more complex.
[00:26] Basic example of pivot table
[02:49] Customizing pivot table and column names
[04:03] Adding Timestamps to pivot table
[05:13] Adding custom columns to pivot table
[06:47] Renaming "pivot" to something else
[07:16] BelongsToMany with conditions
[08:32] Model for the pivot table with extra relationship
Want more? Here's my course "Eloquent: Expert Level"
[ Ссылка ]
- - - - -
Support the channel by checking out my products:
- My Laravel courses membership: [ Ссылка ]
- Laravel QuickAdminPanel: [ Ссылка ]
- Livewire Kit Components: [ Ссылка ]
- - - - -
Other places to follow:
- My weekly Laravel newsletter: [ Ссылка ]
- My personal Twitter: [ Ссылка ]
Ещё видео!