Laravel membuat acara mendapatkan 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();
});
Beautiful Bird