📅  最后修改于: 2022-03-11 14:53:35.725000             🧑  作者: Mango
// 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();
});