Skip to content

Commit

Permalink
prevent loading views if view class not in container (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyuldashev authored and barryvdh committed Dec 19, 2018
1 parent 32df0a3 commit 3d7f124
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/IdeHelperServiceProvider.php
Expand Up @@ -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')) {
Expand Down

0 comments on commit 3d7f124

Please sign in to comment.