From 2415a26ace54c75b3d8819e3f7d761efaf42dee2 Mon Sep 17 00:00:00 2001 From: Rafael Milewski Date: Sun, 8 Aug 2021 13:00:30 +0800 Subject: [PATCH] Add dockBlock --- src/HasCallbacks.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/HasCallbacks.php b/src/HasCallbacks.php index b3ce85e..db9067a 100644 --- a/src/HasCallbacks.php +++ b/src/HasCallbacks.php @@ -2,8 +2,17 @@ namespace Ganyicz\NovaCallbacks; +use Illuminate\Database\Eloquent\Model; use Laravel\Nova\Http\Requests\NovaRequest; +/** + * @method static beforeSave(NovaRequest $request, Model $model): void + * @method static afterSave(NovaRequest $request, Model $model): void + * @method static beforeCreate(NovaRequest $request, Model $model): void + * @method static afterCreate(NovaRequest $request, Model $model): void + * @method static beforeUpdate(NovaRequest $request, Model $model): void + * @method static afterUpdate(NovaRequest $request, Model $model): void + */ trait HasCallbacks { public static function fill(NovaRequest $request, $model)