jackwander / laravel-module-maker
Laravel Custom module maker for SDG
1.1.3
2025-04-15 18:24 UTC
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