Unable to find component: [app.filament.app-panel.pages.edit-tenant-profile]

I have the following edit tenant page. When submitting the form, the following error appears: Unable to find component: [app.filament.app-panel.pages.edit-tenant-profile]
<?php

namespace App\Filament\AppPanel\Pages;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile as BaseEditTenantProfile;

class EditTenantProfile extends BaseEditTenantProfile
{
public static function getLabel(): string
{
return __('Tenant profiel');
}

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')
->label(__('Naam'))
->required()
->unique(ignoreRecord: true),
TextInput::make('avatar_url')
->label(__('Logo URL'))
->required()
->url(),
]);
}
}
<?php

namespace App\Filament\AppPanel\Pages;

use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile as BaseEditTenantProfile;

class EditTenantProfile extends BaseEditTenantProfile
{
public static function getLabel(): string
{
return __('Tenant profiel');
}

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('name')
->label(__('Naam'))
->required()
->unique(ignoreRecord: true),
TextInput::make('avatar_url')
->label(__('Logo URL'))
->required()
->url(),
]);
}
}
Solution:
I found the reason ! (https://github.com/filamentphp/filament/issues/7377) In my case it was a namespace problem, so I think it's the same for @proculair If your panel name is App you should have namespace like ...
Jump to solution
12 Replies
Ashk
Ashk2y ago
I've the same problem with RegisterTenant
Andrew Wallo
Andrew Wallo2y ago
@proculair @ashk Can I see what your configuration looks like in the Panel Provider?
Solution
Ashk
Ashk2y ago
I found the reason ! (https://github.com/filamentphp/filament/issues/7377) In my case it was a namespace problem, so I think it's the same for @proculair If your panel name is App you should have namespace like App\Filament\AppPanel\Pages -> App\Filament\App\Pages
Proculair B.V.
Proculair B.V.OP2y ago
Gist
AppPanelProvider.php
GitHub Gist: instantly share code, notes, and snippets.
Gist
EditTenantProfile.php
GitHub Gist: instantly share code, notes, and snippets.
Ashk
Ashk2y ago
?
Proculair B.V.
Proculair B.V.OP2y ago
Andrew asked to see the files
青木
青木2y ago
How did this work out?
Andrew Wallo
Andrew Wallo2y ago
Did you not already find the solution?
青木
青木2y ago
GitHub
Error "Unable to find component" encountered after triggering live ...
Package filament/filament Package Version v3.0.26 Laravel Version v10.19.0 Livewire Version v3.0@beta PHP Version v8.2.8 Problem description Unable to find component: [app.filament.company.pages.te...
Andrew Wallo
Andrew Wallo2y ago
^ Yeah probably that. Also if you are using AppPanel for the namespace for Pages/Resources, the panel id should need to be app-panel. @proculair And it seems what you currently have in the panel for the id is just app, so change it and see if it works.
青木
青木2y ago
If you are writing your own pages you should register them in pages. I checked the source code and found that only using $panel->pages([]) registers the page component.
Proculair B.V.
Proculair B.V.OP2y ago
Thanks for your help, I fixed it using discoverPages in the PanelProvider

Did you find this page helpful?