Create Laravel package with structure like laravel application
You can install the package via composer:
composer require socoladaica/laravel-modules-command
php artisan cms:make:module <package-name>
php artisan cms:make:model <model name> -mfsc <module>
# Ex
php artisan cms:make:model Admin -mfsc blog-common
php artisan cms:make:controller <controller name> -mfsc <module>
# Ex blade controller
php artisan cms:make:controller CategoryController --resource blog-api-admin
# Ex resource controller
php artisan cms:make:controller --resource --api --model=App\Models\User CategoryController blog-api-admin
See all command []