pingpong modules docs tell us to use StudlyCase, since we use psr-4 to autoloading the things but, now, I'm having some troubles.
I use the following command:
php artisan module:make Client-invoice
This, create a module folder ClientInvoice. So far so good!!
Problems:
If I go to modules/ClientInvoice/Seeders, I will have a file, also created by the command above, name CandidateInvoiceDatabaseSeeder.php. Inside this file we have the namespace:
namespace Modules\Candidateinvoice\Database\Seeders;
Did you notice? The module name is not StudlyCase... We should have CandidateInvoice instead of Candidateinvoice. This is not a problem for windows systems, but for linux, could be a problem.
And there's more places where this happens, for instance:
Modules\Candidateinvoice\Providers\CandidateInvoiceServiceProvider.php
Hi all,
pingpong modules docs tell us to use StudlyCase, since we use psr-4 to autoloading the things but, now, I'm having some troubles. I use the following command:
php artisan module:make Client-invoice
This, create a module folder ClientInvoice. So far so good!!
Problems: If I go to modules/ClientInvoice/Seeders, I will have a file, also created by the command above, name CandidateInvoiceDatabaseSeeder.php. Inside this file we have the namespace:
namespace Modules\Candidateinvoice\Database\Seeders;
Did you notice? The module name is not StudlyCase... We should have CandidateInvoice instead of Candidateinvoice. This is not a problem for windows systems, but for linux, could be a problem.
And there's more places where this happens, for instance:
Modules\Candidateinvoice\Providers\CandidateInvoiceServiceProvider.php
Any solution?
Thanks in advance. Best wishes. Marcelo