| name | scaffold-module |
| description | Procedural workflow for creating new domain modules and HTTP transport layers. |
Scaffolding Modules
(Standards: Refer to Guidelines: Architecture)
This skill provides the procedural workflow for creating new domain modules and their transport layers.
1. Procedural Steps
- Naming: Identify the PascalCase module name (e.g.,
Billing).
- Directory Creation: Create the base folders as defined in the rules.
- Registering Routes: Add the module's routing file to
app/Http/Api/routes/v1.php.
- Scaffolding Core: Use artisan commands (e.g.,
make:model, make:class) to populate the logic layer.
2. Examples
[!IMPORTANT]
When scaffolding, always verify that no cross-module model usage occurs. Use Contracts (placed in Contracts/ folder) for interaction.