composer require laravel/api-module
"Modules\\": "Modules/",
php artisan vendor:publish --provider="Strides\Module\Providers\ModuleServiceProvider"
add in phpunit.xml
<testsuite name="Modules">
<directory suffix="Test.php">Modules/*/Tests/*</directory>
</testsuite>
php artisan module:make-module ModuleName
creding module by config file
- Model
- Factory
- Seeder
- Migration
- Controller
- Request
- Repository
- Resource
- Collection
- Route
- Middleware
-
php artisan module:make-model ModuleName
-
php artisan module:make-model ModuleName -c
controller -
php artisan module:make-model ModuleName -m
migration -
php artisan module:make-model ModuleName -s
seeder -
php artisan module:make-model ModuleName -f
factory -
php artisan module:make-model ModuleName -r
request -
php artisan module:make-model ModuleName -o
resource -
php artisan module:make-model ModuleName -p
repository -
php artisan module:make-model ModuleName -a
all -
php artisan module:make-model ModuleName ModelName options
-
php artisan module:migration ModuleName alter_table_posts
-
php artisan module:make-controller Post
-
php artisan module:make-controller Post -r
request -
php artisan module:make-controller Post -o
resource -
php artisan module:make-controller Post -p
repository -
php artisan module:make-controller Post -a
all -
php artisan module:make-controller Post NewsController -a
-
php artisan module:migrate ModuleName
-
php artisan module:migrate ModuleName -f
force -
php artisan module:migrate ModuleName -s
seed -
php artisan module:migrate ModuleName -d
database -
php artisan module:migrate ModuleName --step
step -
php artisan module:migrate ModuleName --pretend
pretend -
php artisan module:seed ModuleName (optional)
-
php artisan module:migrate-status ModuleName (optional)
-
php artisan module:migrate-rollback ModuleName (optional)
-
php artisan module:migrate-reset ModuleName (optional)
-
php artisan module:migrate-refresh ModuleName (optional) --seed --step=1