diff --git a/src/BladeIconsServiceProvider.php b/src/BladeIconsServiceProvider.php index 0a5809a..5831d69 100644 --- a/src/BladeIconsServiceProvider.php +++ b/src/BladeIconsServiceProvider.php @@ -4,6 +4,7 @@ namespace BladeUI\Icons; +use Illuminate\Contracts\View\Factory as ViewFactory; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Blade; @@ -19,7 +20,6 @@ public function register(): void public function boot(): void { - $this->bootComponents(); $this->bootDirectives(); $this->bootPublishing(); } @@ -44,11 +44,8 @@ private function registerFactory(): void return $factory; }); - } - private function bootComponents(): void - { - $this->callAfterResolving('view', function ($view, Application $app) { + $this->callAfterResolving(ViewFactory::class, function ($view, Application $app) { $app->make(Factory::class)->registerComponents(); }); }