Auto generate models (#1163)

* Add illuminate/events as suggestion

* Add post migration to config

* Add listener to generate model helper

* Add event listeners if enabled

* Fix config file format

* Add docblock for shouldRun flag

* Allow running multiple commands after migrations

* Simplify config

* Change default value
This commit is contained in:
netpok
2021-03-15 18:57:20 +01:00
committed by GitHub
parent c5c9b2b951
commit 202395b50f
4 changed files with 77 additions and 0 deletions
+12
View File
@@ -278,4 +278,16 @@ return [
*/
'additional_relation_types' => [],
/*
|--------------------------------------------------------------------------
| Run artisan commands after migrations to generate model helpers
|--------------------------------------------------------------------------
|
| The specified commands should run after migrations are finished running.
|
*/
'post_migrate' => [
// 'ide-helper:models --nowrite',
],
];