diff --git a/src/IdeHelperServiceProvider.php b/src/IdeHelperServiceProvider.php index 91a64cd..ff4bf4e 100644 --- a/src/IdeHelperServiceProvider.php +++ b/src/IdeHelperServiceProvider.php @@ -37,8 +37,10 @@ class IdeHelperServiceProvider extends ServiceProvider */ public function boot() { - $viewPath = __DIR__.'/../resources/views'; - $this->loadViewsFrom($viewPath, 'ide-helper'); + if ($this->app->has('view')) { + $viewPath = __DIR__ . '/../resources/views'; + $this->loadViewsFrom($viewPath, 'ide-helper'); + } $configPath = __DIR__ . '/../config/ide-helper.php'; if (function_exists('config_path')) {