(sub)domain tenant identification and login #15992
-
Is it possible to customize login page (brand for example) having tenant after sub/domain tenant identification? |
Beta Was this translation helpful? Give feedback.
Answered by
leandrocfe
Apr 3, 2025
Replies: 1 comment 1 reply
-
You can try something like this Create a custom Login class extending the original class CustomLogin extends \Filament\Pages\Auth\Login
{
public function hasLogo(): bool
{
return false;
}
public function getHeading(): string|Htmlable
{
$currentDomain = filament()->getCurrentDomain(); // Get the current domain
return $currentDomain;
}
} Add to the panel $panel
...
->login(CustomLogin::class) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
makroxyz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try something like this
Create a custom Login class extending the original
Add to the panel