You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not exactly sure how to describe this but I'll try my best.
When I'm extending a filament Resource class that is under namespace "App" from a resource class that is under "AppTest" and register it in my panel everything works as expected. Hovewer, when I try to extend the same resource that is in a cluster the routes for the pages (list, edit, create etc) are not registered for the panel under "AppTest"
This is the resource I'm trying to extend, mind you this resource is not registered with any panels
app/Filament/Resources/TagResource.php
This is where I'm trying to extend it
apptest/Filament/Clusters/Settings/Resources/TagResource.php
<?phpnamespaceAppTest\Filament\Clusters\Settings\Resources;
useApp\Filament\Resources\TagResourceasBaseTagResource;
useAppTest\Filament\Clusters\Settings;
// This will throw an error beacuse of the missing routesclassTagResourceextendsBaseTagResource
{
protectedstatic ?string$cluster = Settings::class;
}
Expected behavior
I'd expect that resource classes under clusters behave the same way when they are not in a cluster regarding class extending.
Steps to reproduce
clone the repo and create a database.sqlite file under the database folder
run php artisan migrate
open upp app, log in ( [email protected] / password ), navigate to path /test/settings/tags
you'll receive the following error Route [filament.test.resources.tags.index] not defined.
look for FBUG: in the provided repo to play around
Reproduction repository (issue will be closed if this is not valid)
TKrisee
changed the title
Resource extending in cluster does not register resource pages routes under current panel
Resource extending in cluster does not register resource pages routes under the clusters panel
Aug 29, 2024
Package
filament/filament
Package Version
v3.2.108
Laravel Version
v10.48.20
Livewire Version
v3.5.6
PHP Version
PHP 8.3
Problem description
I'm not exactly sure how to describe this but I'll try my best.
When I'm extending a filament Resource class that is under namespace "App" from a resource class that is under "AppTest" and register it in my panel everything works as expected. Hovewer, when I try to extend the same resource that is in a cluster the routes for the pages (list, edit, create etc) are not registered for the panel under "AppTest"
This is the resource I'm trying to extend, mind you this resource is not registered with any panels
app/Filament/Resources/TagResource.php
This is where I'm trying to extend it
apptest/Filament/Clusters/Settings/Resources/TagResource.php
Expected behavior
I'd expect that resource classes under clusters behave the same way when they are not in a cluster regarding class extending.
Steps to reproduce
php artisan migrate
/test/settings/tags
Route [filament.test.resources.tags.index] not defined.
look for
FBUG:
in the provided repo to play aroundReproduction repository (issue will be closed if this is not valid)
https://github.com/TKrisee/filament-bugs
Relevant log output
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: