{"repo":"fico7489/laravel-pivot","free":true,"listed":false,"github":"https://github.com/fico7489/laravel-pivot","clone":"git clone https://github.com/fico7489/laravel-pivot.git","description":"This package introduces new events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.","language":"PHP","stars":524,"topics":["eloquent-events","laravel-events","laravel","pivot-events","belongstomany-events","sync-event","attach-events"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Pivot This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation. Laravel Problems In Laravel events are not dispatched when BelongsToMany relation (pivot table) is updated with sync(), attach(), detach() or updateExistingPivot() methods, but this package will help with that. Version Compatibility Laravel Version Package Tag Supported Development Branch ----------------- ------------- ----------- ----------- = 5.5.0 3. yes master attributes) Running this code You will see this output Syncing: For sync() method event is dispatched for each pivot row. Running this code You will see this output Detaching: Running this code You will see this output Updating: Running this code You will see this output License ---- MIT Free Software, Hell Yeah!","default_branch":null,"files":null,"tree":[],"storefront":"/r/fico7489","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fico7489/laravel-pivot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}