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
+15
View File
@@ -144,6 +144,21 @@ return [
],
/*
|--------------------------------------------------------------------------
| Models hooks
|--------------------------------------------------------------------------
|
| Define which hook classes you want to run for models to add custom information
|
| Hooks should implement Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface.
|
*/
'model_hooks' => [
// App\Support\IdeHelper\MyModelHook::class
],
/*
|--------------------------------------------------------------------------
| Extra classes