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 15
15
use Barryvdh \LaravelIdeHelper \Console \GeneratorCommand ;
16
16
use Barryvdh \LaravelIdeHelper \Console \MetaCommand ;
17
17
use Barryvdh \LaravelIdeHelper \Console \ModelsCommand ;
18
+ use Barryvdh \LaravelIdeHelper \Listeners \GenerateHelperAndMeta ;
18
19
use Barryvdh \LaravelIdeHelper \Listeners \GenerateModelHelper ;
19
20
use Illuminate \Console \Events \CommandFinished ;
20
21
use Illuminate \Contracts \Support \DeferrableProvider ;
@@ -35,6 +36,10 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
35
36
*/
36
37
public function boot ()
37
38
{
39
+ if ($ this ->app ['config ' ]->get ('ide-helper.post_discover ' , [])) {
40
+ $ this ->app ['events ' ]->listen (CommandFinished::class, GenerateHelperAndMeta::class);
41
+ }
42
+
38
43
if ($ this ->app ['config ' ]->get ('ide-helper.post_migrate ' , [])) {
39
44
$ this ->app ['events ' ]->listen (CommandFinished::class, GenerateModelHelper::class);
40
45
$ this ->app ['events ' ]->listen (MigrationsEnded::class, function () {
You can’t perform that action at this time.
0 commit comments