To install through Composer, by run the following command:
composer require hungthai1401/laravel-hmvc
The package will automatically register a service provider.
Optionally, publish the package's configuration file by running:
php artisan vendor:publish --provider="HT\Modules\Providers\ModuleServiceProvider"
Update your composer.json
{
...,
"repositories": [
{
"type": "path",
"url": "./modules/*"
},
]
}
php artisan module:create <module-name>
php artisan module:remove <module-name>
php artisan module:make:controller <module-name> <controller-name>
php artisan module:make:model <module-name> <model-name>
php artisan module:make:scope <module-name> <scope-name>
php artisan module:make:provider <module-name> <provider-name>
php artisan module:make:facade <module-name> <facade-name>
php artisan module:make:policy <module-name> <policy-name>
php artisan module:make:event <module-name> <event-name>
php artisan module:make:listener <module-name> <listener-name>
php artisan module:make:request <module-name> <form-request-name>
php artisan module:make:job <module-name> <job-name>
php artisan module:make:command <module-name> <command-name>
php artisan module:make:rule <module-name> <rule-name>
php artisan module:make:service <module-name> <service-name>
php artisan module:make:repository <module-name> <repository-name>
php artisan module:make:view <module-name> <view-name>
php artisan module:make:composer <module-name> <view-composer-name>
php artisan module:make:migration <module-name> <migration-name> --{create|table}
php artisan module:make:seed <module-name> <seeder-name>
php artisan module:make:factory <module-name> <factory-name>
php artisan module:db:seed <module-name> {--class}