Login Two Pannel Same Browser
I have created two in the filament one is Admin and another is App .
is it possible to login both panel by same browser ?.
1)http://127.0.0.1:8000/admin/login
2)http://127.0.0.1:8000/app/login
6 Replies
IT should work, but as I understand it tenants wouldn't
@Sourabh use custom guard authentication
https://laravel.com/docs/10.x/authentication#adding-custom-guards
1) /config/auth.php
3) And each Filament-panel uses a specific guard for authentication ->authGuard('***')
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
no it won't work. either open browser in incognito mode or install different browser
or split it to two apps
@bogus Thanks, it's working with the use of custom gaurd 👍
Yes, it will work by specifying separate guards for each panel.
Just be aware that when you use it this way, the Logout option may log you out of both guards (and therefore both panels) at the same time, even if RememberMe is set.
This is because you're sharing the same session, because it's on the same domain.
Beware that trying to split them into separate sessions while still sharing the same top-level-domain (regardless of subdomains) may take you down a very long road of exploration and discovery and frustration: easier to avoid that!