protected static bool $isScopedToTenant = false;
Filament::bootCurrentPanel();
ds(Filament::getCurrentPanel()); \Filament\Facades\Filament::setCurrentPanel(\Filament\Facades\Filament::getPanel('app')); ds(Filament::getCurrentPanel());
beforeEach(function () { createTenantDatabase(); $this->TenantLogin();});
public function TenantLogin(): void { tenancy()->initialize(getTenant()); $user = \App\Models\App\User::query()->where('name', 'admin')->first(); $store = Store::query()->where('slug', 'test')->first(); $this->actingAs($user); \Filament\Facades\Filament::setCurrentPanel(\Filament\Facades\Filament::getPanel('app')); \Filament\Facades\Filament::setTenant($store, true); }
\Filament\Facades\Filament::setCurrentPanel(\Filament\Facades\Filament::getPanel('app')); \Filament\Facades\Filament::setTenant($store, true);