Skip to content

(sub)domain tenant identification and login #15992

Answered by leandrocfe
makroxyz asked this question in Help
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@makroxyz
Comment options

Answer selected by makroxyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants