diff --git a/src/InfyOmGeneratorServiceProvider.php b/src/InfyOmGeneratorServiceProvider.php index d2649e97..9df1fed0 100755 --- a/src/InfyOmGeneratorServiceProvider.php +++ b/src/InfyOmGeneratorServiceProvider.php @@ -62,9 +62,11 @@ public function boot() $this->registerCommands(); $this->loadViewsFrom(__DIR__.'/../views', 'laravel-generator'); - View::composer('*', function ($view) { - $view->with(['config' => app(GeneratorConfig::class)]); - }); + foreach (['laravel-generator', 'adminlte-templates'] as $packageName) { + View::composer($packageName.'::*', function ($view) { + $view->with(['config' => app(GeneratorConfig::class)]); + }); + } Blade::directive('tab', function () { return '';