mbedzinski / laravel_module_builder
This is my package LaravelModuleBuilder
Fund package maintenance!
mbedzinski
Installs: 1 043
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^2.18
- illuminate/contracts: ^8.0
- laravel/tinker: ^2.6
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is not auto-updated.
Last update: 2024-05-07 18:51:43 UTC
README
Usage
Make module
php artisan make:module {ModuleName}
Make module model
php artisan make:module -m {ModuleName} {ModelName}
-a, Generate a migration, seeder, factory, and resource controller for the model
-c, Create a new controller for the model
-f, Create a new factory for the model
-m, Create a new migration file for the model
-s, Create a new seeder file for the model
-p, Indicates if the generated model should be a custom intermediate table model
-r, Indicates if the generated controller should be a resource controller
--api Indicates if the generated controller should be an API controller