InterNACHI / modular

Modularize your Laravel application
MIT License
796 stars 65 forks source link

Make --module input optional #91

Open princejohnsantillan opened 7 months ago

princejohnsantillan commented 7 months ago

Currently this value is required, example: php artisan make:controller TestController --module=module-1

This PR allows for us to just select it from a list, example: php artisan make:controller TestController --module

CleanShot 2024-04-26 at 10 31 59@2x

Wulfheart commented 6 months ago

This would be so cool!

ahinkle commented 6 months ago

Nice one! Was looking for this as well.

Wulfheart commented 6 months ago

But we need to account that we want to create something in the /app folder as well.

ahinkle commented 6 months ago

I'm not sure if I'm following. This PR allows modular and non-modular files to be generated.

php artisan make:model Flight (creates in /app)

php artisan make:model Flight --module

php artisan make:model Flight --module=airport

princejohnsantillan commented 6 months ago

But we need to account that we want to create something in the /app folder as well.

If you don't add --module it will create it on the app folder by default.