Download the PHP package neylsongularte/eloquent-extra-events without Composer
On this page you can find all versions of the php package neylsongularte/eloquent-extra-events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package eloquent-extra-events
eloquent-extra-events
Install:
In your model:
use NeylsonGularte\EloquentExtraEvents\ExtraEventsTrait;
Events:
- eloquent.syncing
- eloquent.synced
- eloquent.attaching
- eloquent.attached
- eloquent.detaching
- eloquent.detached
Listen events in App\Providers\AppServiceProvider:
Available properties:
$eventData['parent_model']:stringe.g.'App\Models\Model'$eventData['parent_id']:integere.g.42$eventData['related_model']:stringe.g.'App\Models\Model'- (except eloquent.synced)
$eventData['related_ids']:arraye.g.[31,41] - (Only eloquent.detached)
$eventData['results']:integere.g.2 - (Only eloquent.synced)
$eventData['changes']:arraywith the following keys:'attached':arraye.g.[1, 8]'detached':arraye.g.[15, 16]'updated':arraye.g.[23]
Note: sync trigger attach and detach.
All versions of eloquent-extra-events with dependencies
PHP Build Version
Package Version
No informations.
The package neylsongularte/eloquent-extra-events contains the following files
Loading the files please wait ...