📜  laravel 创建事件获取数据 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:35.725000             🧑  作者: Mango

代码示例1
// 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();
});