Model hooks (#945)

* Model hooks

* composer fix-style

* Fix test for ModelHooks

Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
wimski
2021-03-29 20:49:09 +02:00
committed by GitHub
co-authored by laravel-ide-helper
parent b8d5fc3663
commit f0c138c4fd
8 changed files with 218 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
namespace Barryvdh\LaravelIdeHelper\Contracts;
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
use Illuminate\Database\Eloquent\Model;
interface ModelHookInterface
{
public function run(ModelsCommand $command, Model $model): void;
}