created_at = Auth::user()->id ?? null; }); static::updating(function ($attribute) { $attribute->updated_at = Auth::user()->id ?? null; }); } }