Closed rezwanul7 closed 4 months ago
Hi @rezwanul7, I have tried to reproduce your issue above but I couldn't. I have created a bare minimum setup by following the package's documentation and it works perfectly. I followed these steps:
Created a new Laravel Project
Ran composer to install coolsam/modules, which by default installs all the other dependencies including filament and nwidart/laravel-modules.
Configured Filament (filament:install) and created two Panels: Org and Team
Opened the Org Panel and added the ModulesPlugin there (My highest suspicion is that you may have skipped this). Here is how my Org panel looks like:
Configured nwidart/modules as per the documentation, including adding the folllowing to composer.json:
Created a new Module called Procurement: php artisan module:make Procurement
Added a new model called Supplier to the Procurement module with a factory, seeder and migration: php artisan module:make-model Supplier -mfs Procurement
Installed the Filament Modules Plugin under the Procurement Module: php artisan module:filament:install
. Here are my steps:
Finally generated a Suppliers Resource under the Procurement module, after running php artisan migrate. Here are my steps:
After going through the above steps, here is my working app:
Feel free share your reproduction repo in case you are still experiencing challenges. Closing this for now.
What happened?
In a multipanel app when running
php artisan module:make:filament-resource
asks about the panel. But it doesn't generate the resources inside the folder belonging to the panel.How to reproduce the bug
Create a multipanel app i.e. org, team. Run
php artisan module:make:filament-resource
. It will ask about the panel and select org.Package Version
4.0.6
PHP Version
8.2.0
Laravel Version
11.15.0
Which operating systems does with happen with?
Windows
Notes
No response
Just to clarify, the whole idea of using this package is to gain autonomy from the main app/ directory, so resources are not generated in the panel folder, they are rather generated inside the Module of your choice. Here is a sample directory structure for a Procurement module registered under the Org panel:
What happened?
In a multipanel app when running
php artisan module:make:filament-resource
asks about the panel. But it doesn't generate the resources inside the folder belonging to the panel.How to reproduce the bug
Create a multipanel app i.e. org, team. Run
php artisan module:make:filament-resource
. It will ask about the panel and select org.Package Version
4.0.6
PHP Version
8.2.0
Laravel Version
11.15.0
Which operating systems does with happen with?
Windows
Notes
No response