dimanche 24 mars 2019

How to create a controller in a sub-folder when defining as a parameter?

I'm creating a project with Laravel and I'm aware that there is a way to create the migration and controller (with or without resources) along with the model with php artisan make:model ExampleModel -m -c -r.

In my project I have models and controllers in sub-folders. I'm able to add the model and controllers to sub-folders when creating them separately (php artisan make:model Models/example_model and same in controllers). But I don't know how to add the controllers to a sub-folder when creating them with a parameter on the make:model command.

I really appreciate any help you can provide.

I've tried the below commands already and they don't appear to be working

php artisan make:model Models/example -m -MyControllers/c -r

php artisan make:model Models/example -m MyControllers/-c -r



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire