... public function boot() { ... if (\App::environment('production')) { \View::composer(['telescope::layout'], function ($view) { $view->with('telescopeScriptVariables', [ 'path' => 'SUBFOLDER/telescope', 'timezone' => config('app.timezone'), 'recording' => !cache('telescope:pause-recording'), ]); }); } } ...