F
Filament2mo ago
Baspa

Access to the tenantId in the panel or middleware of a package

Is it possible to get the current tenantId in the panel or middleware of a Filament plugin? Haven't been able to get it yet, I'm curious if it's possible at all.
2 Replies
toeknee
toeknee2mo ago
Yes
use Filament\Facades\Filament;

$tenantId = Filament::getTenant()->id;
use Filament\Facades\Filament;

$tenantId = Filament::getTenant()->id;
Baspa
Baspa2mo ago
Thanks!
Want results from more Discord servers?
Add your server