mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 23:07:46 +01:00
feat: ✨ Aggiunta selezione automatica della view Blade in base alla route (esterna/interna)
This commit is contained in:
parent
f832b0f2fa
commit
db5d1adb30
@ -46,4 +46,12 @@ class HandleInertiaRequests extends Middleware
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
public function rootView(Request $request): string
|
||||
{
|
||||
if (in_array($request->route()?->uri(), ['setup', 'login'], true)) {
|
||||
return 'external';
|
||||
}
|
||||
return $this->rootView;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user