Events
Across the code, there are different events allowing you to subscribe to them:
Record::class.inserting
Record::class.inserted
Record::class.updating
Record::class.updated
Record::class.deleting
Record::class.deleted
static::class...
- all globalRecord::class
events also have their localstatic::class
events, for exampleUser::class.inserting
Adding a handler
You can register a handler in any of your providers:
And then implement your event handler:
Last updated
Was this helpful?