composer require pablolovera/modules-laravel
PabloLovera\ModulesLaravel\Providers\ModulesServiceProvider::class,
php artisan vendor:publish --provider="PabloLovera\ModulesLaravel\Providers\ModulesServiceProvider"
Create the Core
module. It's very important!
php artisan module:make-core
Then... see the directory app/Core/
php artisan make:module <module-name>
Then... see the directory app/Modules/<module-name>
php artisan ...
make:module <module-name>
So... created in app/Modules/<module-name>
When a new module is created, you need add provider in config/app.php
, like a App\Modules\<module-name>\Providers\<module-name>ServiceProvider::class,
module:make-controller <controller-name> <module-name>
So... created in app/Modules/<module-name>/Http/Controllers/<controller-name>
module:make-model <model-name> <module-name>
So... created in app/Modules/<module-name>/Models/<model-name>
module:make-request <request-name> <module-name>
So... created in app/Modules/<module-name>/Http/Requests/<request-name>
module:make-seeder <seeder-name> <module-name>
So... created in app/Modules/<module-name>/Database/seeds/<seeder-name>
module:make-migration <migration-name> <module-name>
So... created in app/Modules/<module-name>/Database/migrations/<migration-name>
module:migrate <module-name>
or
module:migrate <module-name> --seed
module:make-service-provider <service-provider-name> <module-name>
So... created in app/Modules/<module-name>/Providers/<service-provider-name>
module:make-transformer <transformer-name> <module-name>
So... created in app/Modules/<module-name>/Transformers/<transformer-name>
module:make-view-dados <module-name>
So... created in app/Modules/<module-name>/Views/<view-name>
module:make-view-lista <module-name>
So... created in app/Modules/<module-name>/Views/<view-name>