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 ;
@@ -34,6 +35,10 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
34
35
*/
35
36
public function boot ()
36
37
{
38
+ if ($ this ->app ['config ' ]->get ('ide-helper.post_discover ' , [])) {
39
+ $ this ->app ['events ' ]->listen (CommandFinished::class, GenerateHelperAndMeta::class);
40
+ }
41
+
37
42
if (!$ this ->app ->runningUnitTests () && $ this ->app ['config ' ]->get ('ide-helper.post_migrate ' , [])) {
38
43
$ this ->app ['events ' ]->listen (CommandFinished::class, GenerateModelHelper::class);
39
44
$ this ->app ['events ' ]->listen (MigrationsEnded::class, function () {
You can’t perform that action at this time.
0 commit comments