jackwander / laravel-module-maker
Laravel Custom module maker for SDG
Installs: 237
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jackwander/laravel-module-maker
Requires
- php: ^8.2
README
This Custom Module Creator adheres strictly to SDG coding standards and file structure guidelines. It is designed to ensure consistency and maintainability in SDG projects.
Usage
Creating a new Module.
To create a new module, run:
php artisan jw:make-module Person
Creating a New Migration File for a Specific Module
To create a new migration file for a module, use:
php artisan jw:make-migration insert_status_column --module=Person --table=persons
Creating a New Model File to a Specific Module
To create a new model file in the module, use:
php artisan jw:make-model CivilStatus --module=Persons
this also generates a migration file, controller and service.
Creating a New Controller File to a Specific Module
To create a new controlling using the model in the module, use:
php artisan jw:make-controller CivilStatus --module=Persons
Creating a New Service File to a Specific Module
To create a new service using the model in the module, use:
php artisan jw:make-service CivilStatus --module=Persons