tomatophp / filament-tenancy

Tenancy multi-database integration for FilamentPHP
https://tomatophp.com/en/open-source/filament-tenancy
MIT License
36 stars 8 forks source link

How to create a new Resource for the tenant panel? #10

Closed Fzoltan87 closed 1 month ago

Fzoltan87 commented 1 month ago

How to create a new resource inside the app\Filament\ folder for tenants? Thx

linear[bot] commented 1 month ago

TOT-109 How to create a new Resource for the tenant panel?

3x1io commented 1 month ago

it's easy just create the panel app and use

php artisan filament:panel app

then use the plugin inside it, add when you generate a new resource select the panel

Fzoltan87 commented 1 month ago

Yes, I have created this, and within the App\Filament\App\Resource\ folder, I have also created a new module, but the module's access does not appear in the navigation section.

3x1io commented 1 month ago

okay just try

php artisan filament:optimize-clear
Fzoltan87 commented 1 month ago

Great. Now it works. On the other hand, I did not give the Panel an App ID, but a Tenant.