Make Commands ​
The make:* group scaffolds every layer of a Modularous application — from a full module skeleton to individual traits, Vue components, and test files. Every command lives under src/Console/Make/ and extends BaseCommand.
Module & Route Scaffold ​
| Command | Signature | Description |
|---|---|---|
| make:module | modularous:make:module | Bootstrap a complete module (nWidart skeleton + first route) |
| make:route | modularous:make:route | Add a new route to an existing module |
| make:stubs | modularous:make:stubs | Selectively regenerate stub files for an existing route |
Models & Data ​
| Command | Signature | Description |
|---|---|---|
| make:model | modularous:make:model | Eloquent model with optional traits, relations, and companion models |
| make:migration | modularous:make:migration | Database migration (create, pivot, morph-pivot, add, drop) |
| make:repository | modularous:make:repository | Repository class bound to a module model |
| make:model:trait | modularous:make:model:trait | Reusable entity trait (Has{Name}.php) |
| make:repository:trait | modularous:make:repository:trait | Reusable repository trait ({Name}Trait.php) |
Controllers & Requests ​
| Command | Signature | Description |
|---|---|---|
| make:controller | modularous:make:controller | Admin-panel CRUD controller |
| make:controller:api | modularous:make:controller:api | REST API controller |
| make:controller:front | modularous:make:controller:front | Front-end (public-facing) controller |
| make:request | modularous:make:request | Form Request with inline validation rules |
| make:route:permissions | modularous:make:route:permissions | Generate Spatie permission records for a route |
Events & Async ​
| Command | Signature | Description |
|---|---|---|
| make:event | modularous:make:event | Laravel Event class (broadcasting, deferred dispatch) |
| make:listener | modularous:make:listener | Laravel Listener class (queued, after-commit) |
| make:operation | modularous:make:operation | One-time operation file for the operations pipeline |
| make:horizon:supervisor | modularous:make:horizon:supervisor | Supervisor .conf for Laravel Horizon |
Console ​
| Command | Signature | Description |
|---|---|---|
| make:command | modularous:make:command | New Artisan command class inside the Modularous vendor path |
Themes & Frontend ​
| Command | Signature | Description |
|---|---|---|
| make:theme:folder | modularous:make:theme:folder | Scaffold a custom theme working folder |
| make:theme | modularous:make:theme | Promote a custom theme into the built-in theme set |
| make:input:hydrate | modularous:make:input:hydrate | PHP Hydrate class for a Vue input component |
| make:vue:input | modularous:make:vue:input | Vue single-file input component |
Tests ​
| Command | Signature | Description |
|---|---|---|
| make:laravel:test | modularous:make:laravel:test | PHPUnit Feature or Unit test file |
| make:vue:test | modularous:make:vue:test | Vitest/Jest test file for a Vue component or composable |
Composite Wizard ​
| Command | Signature | Description |
|---|---|---|
| make:feature | modularous:make:feature | Interactive wizard that orchestrates multiple make commands |
Common Workflows ​
Scaffold a brand-new module ​
bash
php artisan modularous:make:module Blog --schema="title:string,body:text" --addTranslationAdd a second route to an existing module ​
bash
php artisan modularous:make:route Blog Post --schema="title:string,published_at:timestamp:nullable"Create a standalone model + migration ​
bash
php artisan modularous:make:model Tag Blog --soft-delete
php artisan modularous:make:migration create_blog_tags_table Blog --fields="tag_id:unsignedBigInteger"Scaffold a Vue input feature end-to-end ​
bash
php artisan modularous:make:feature
# Responds to all prompts interactivelyFor the class internals of these commands see System Reference → Console → Make.