File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1515use Barryvdh \LaravelIdeHelper \Console \GeneratorCommand ;
1616use Barryvdh \LaravelIdeHelper \Console \MetaCommand ;
1717use Barryvdh \LaravelIdeHelper \Console \ModelsCommand ;
18+ use Barryvdh \LaravelIdeHelper \Listeners \GenerateHelperAndMeta ;
1819use Barryvdh \LaravelIdeHelper \Listeners \GenerateModelHelper ;
1920use Illuminate \Console \Events \CommandFinished ;
2021use Illuminate \Contracts \Support \DeferrableProvider ;
@@ -34,6 +35,10 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
3435 */
3536 public function boot ()
3637 {
38+ if ($ this ->app ['config ' ]->get ('ide-helper.post_discover ' , [])) {
39+ $ this ->app ['events ' ]->listen (CommandFinished::class, GenerateHelperAndMeta::class);
40+ }
41+
3742 if (!$ this ->app ->runningUnitTests () && $ this ->app ['config ' ]->get ('ide-helper.post_migrate ' , [])) {
3843 $ this ->app ['events ' ]->listen (CommandFinished::class, GenerateModelHelper::class);
3944 $ this ->app ['events ' ]->listen (MigrationsEnded::class, function () {
You can’t perform that action at this time.
0 commit comments