F
Filament8mo 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
toeknee8mo ago
Yes
use Filament\Facades\Filament;

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

$tenantId = Filament::getTenant()->id;
Baspa
BaspaOP8mo ago
Thanks!

Did you find this page helpful?