pingpong-labs / modules

Laravel 5 Modules
https://pingpong-labs.github.io/docs/modules.html
BSD 3-Clause "New" or "Revised" License
576 stars 151 forks source link

Namespaces #251

Open lmarcelocc opened 8 years ago

lmarcelocc commented 8 years ago

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