Рет қаралды 118,747
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"
laraveldaily.teachable.com/p/...
- - - - -
Support the channel by checking out my products:
- My Laravel courses membership: laraveldaily.teachable.com/p/...
- Laravel QuickAdminPanel: bit.ly/quickadminpanel
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: bit.ly/laravel-newsletter
- My personal Twitter: / povilaskorop