F
Filament5mo 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); }
2 Replies
robi
robi5mo ago
hi
Dennis Koch
Dennis Koch5mo ago
You can use Filament::setTenant() to set the tenant.

Did you find this page helpful?