Reconcile EditProfile page and multitenancy

I have an app panel which uses multi tenancy, and before I implemented multi tenancy on the panel, I added profile page in the user menu. It was working great, the component form is customized (if need information), and since I implemented multi tenancy, the page no longer works as I get the error that tenant ID is missing. But profile page shouldn't be tied to any tenant? It's an editing profile page. How do I go about solving this? Point me to documentations if it says anything, I had no luck finding anything addressing that case.
3 Replies
BloodDrunk
BloodDrunkOP5w ago
Bump No one had overriden BaseEditProfile page usage in multi tenant panels?
BloodDrunk
BloodDrunkOP5w ago
Error: Filament\FilamentManager::getTenantName(): Argument #1 ($tenant) must be of type Illuminate\Database\Eloquent\Model, null given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 361
BloodDrunk
BloodDrunkOP5w ago
I've found that returning profile page to default (so no overriding BaseEditProfile) makes it work. But I need it custom. I suppose that multi tenancy in a panel automatically grabs all panel's pages and makes them tenant-aware. Is it possible perhaps to set specific pages\components tenant-agnostic? Further investigation shows that 'isSimple: true' parameter causes this issue. Removing it works. Kinda looks bad this way as I want to have the layout context visible when editing profile but until someone gives me better way, if possible, I guess I'll stick to this.

Did you find this page helpful?