New in Laravel 8.52: Touch Many-to-Many Parent (and what is Touch?)

New in Laravel 8.52: Touch Many-to-Many Parent (and what is Touch?)

A new improvement on a touch() Eloquent feature, but I think for many of you, the touch() itself will be also news, so let's learn it all step by step.

Related links:
- Original PR in Laravel 8.52: [8.x] BelongsToMany sync() will support touching for pivots when the result contains detached items https://github.com/laravel/framework/pull/38085
- Laravel Soft UI Bootstrap 5 Theme: https://github.com/LaravelDaily/Laravel-Soft-UI-Bootstrap5-QuickAdminPanel
- Many-to-Many: Defining Custom Intermediate Table Models https://laravel.com/docs/8.x/eloquent-relationships#defining-custom-intermediate-table-models

- - - - -
Support the channel by checking out our products:
- Enroll in my Laravel courses: https://laraveldaily.teachable.com
- Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Purchase my Livewire Kit: https://livewirekit.com
- View Laravel Code Examples: https://laravelexamples.com
- Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter

Laravel8.52:Touch

Post a Comment

0 Comments