fn () => app()->getLocale(), 'translations' => function () { $json = resource_path('lang/'.app()->getLocale().'.json'); if (!file_exists($json)) { return []; } return Json::decode(file_get_contents($json)); }, ]); } public function rootView(Request $request): string { if (in_array($request->route()?->uri(), ['setup', 'login'], true)) { return 'external'; } return $this->rootView; } }