Laravel tworzenie zdarzeń uzyskaj dane

// 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();
});
Beautiful Bird