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']
:string
e.g.'App\Models\Model'
$eventData['parent_id']
:integer
e.g.42
$eventData['related_model']
:string
e.g.'App\Models\Model'
- (except eloquent.synced)
$eventData['related_ids']
:array
e.g.[31,41]
- (Only eloquent.detached)
$eventData['results']
:integer
e.g.2
- (Only eloquent.synced)
$eventData['changes']
:array
with the following keys:'attached'
:array
e.g.[1, 8]
'detached'
:array
e.g.[15, 16]
'updated'
:array
e.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 ....