check()) { return redirect()->route('login'); } $targetUrl = $path !== '' ? url($path) : route('dashboard.index'); return view('layout.core', [ 'site' => env('APP_STAGE', 'DEV'), 'initialUrl' => $targetUrl, ]); } }