laravel-pivot icon indicating copy to clipboard operation
laravel-pivot copied to clipboard

This package introduces new events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

Results 11 laravel-pivot issues
Sort by recently updated
recently updated
newest added

Hello, will this package be updated for Laravel 9 support?

Adds (explicit) support for Laravel 9. **NOTE:** v3.0.3 _implicitly_ (incorrectly?) supports Laravel 9 and appears to be working. I noticed this when upgrading to Laravel 9 and my `fico7489/laravel-pivot` package...

## Context The `Sync` method uses behind the scenes first `detach` to detach all associations and then will use `attachNew` for each new entry, which leads to a lot of...

I am using this plugin in Laravel 6 project. (Please excuse my bad english 🙏). I have a problem with pivotAttaching event. The event is fired, but after changing the...

For a project of mine, I created a custom model event on a model. This model uses the `PivotEventTrait`. The custom event is added to the model's `$observables` array. As...

The parent::getObservableEvents() method already merge custom events ($this->observables) with eloquent events.

During some of my tests I do't actually want the `pivotAttaching` event to fire. Is there any way to attach a related model while temporarily disabling the events?

I have the package working correctly when it comes to doing things when hitting controllers via axios requests. As a test in an index method of a controller this line...

I am using this plugin in laravel 7.x ``` use Fico7489\Laravel\Pivot\Traits\PivotEventTrait; class Lead extends Model { use PivotEventTrait; ``` when i add **use PivotEventTrait**. it starts giving error. ``` Undefined...