app->singleton('view.finder', function ($app) { return new ThemeViewFinder( $app['files'], $app['config']['view.paths'], null ); }); // Only load the IDE helper if it's included and enabled if (config('app.debug') === true) { /* @noinspection NestedPositiveIfStatementsInspection */ /* @noinspection PhpFullyQualifiedNameUsageInspection */ if (class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) { /* @noinspection PhpFullyQualifiedNameUsageInspection */ $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); } if (config('app.debug_toolbar') === true) { Utils::enableDebugToolbar(); } else { Utils::disableDebugToolbar(); } } } }