laravel 8 event() code example
Example: laravel creating event get data
// Only available for the '-ing' events, not '-ed',
// e.g. only for 'creating', not 'created'
User::updating(function ($user) {
$dirty = $user->getDirty();
$original = $user->getOriginal();
});