lumen-generators icon indicating copy to clipboard operation
lumen-generators copied to clipboard

const MODEL doesn't respect namespace from --path option

Open ShaunaGordon opened this issue 7 years ago • 0 comments

I ran into this when creating resources from a resource file, though it may happen with the other commands.

If I run php artisan wn:resources [file] --path="app/Models"

I would expect the models to be put into a Models folder (which happens), and the const MODEL value in the associated controller to be set to "App\Model\[model]" (which does not happen, it remains as "App\[model]").

ShaunaGordon avatar Aug 10 '17 20:08 ShaunaGordon