Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaces #251

Open
lmarcelocc opened this issue Mar 21, 2016 · 0 comments
Open

Namespaces #251

lmarcelocc opened this issue Mar 21, 2016 · 0 comments

Comments

@lmarcelocc
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant