Skip to content

Commit

Permalink
Merge pull request #3 from milewski/patch-2
Browse files Browse the repository at this point in the history
Add docblock
  • Loading branch information
ganyicz authored Aug 8, 2021
2 parents c153301 + 2415a26 commit e9c3892
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/HasCallbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e9c3892

Please sign in to comment.