FilamentF
Filament7mo ago
FELL

Tenant help

how set current team->id (tenant) at after auth


if(Filament::auth()->attempt($ldap_login_check,$data['remember'] ?? false))
{
$user = Filament::auth()->user();

if ($user instanceof FilamentUser && !$user->canAccessPanel(Filament::getCurrentPanel())) {
Filament::auth()->logout();

$this->throwFailureValidationException();
}

// here need set currenmt team id
session()->regenerate();

return app(LoginResponse::class);
}
Was this page helpful?