Skip to content

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 ​

CommandSignatureDescription
make:modulemodularous:make:moduleBootstrap a complete module (nWidart skeleton + first route)
make:routemodularous:make:routeAdd a new route to an existing module
make:stubsmodularous:make:stubsSelectively regenerate stub files for an existing route

Models & Data ​

CommandSignatureDescription
make:modelmodularous:make:modelEloquent model with optional traits, relations, and companion models
make:migrationmodularous:make:migrationDatabase migration (create, pivot, morph-pivot, add, drop)
make:repositorymodularous:make:repositoryRepository class bound to a module model
make:model:traitmodularous:make:model:traitReusable entity trait (Has{Name}.php)
make:repository:traitmodularous:make:repository:traitReusable repository trait ({Name}Trait.php)

Controllers & Requests ​

CommandSignatureDescription
make:controllermodularous:make:controllerAdmin-panel CRUD controller
make:controller:apimodularous:make:controller:apiREST API controller
make:controller:frontmodularous:make:controller:frontFront-end (public-facing) controller
make:requestmodularous:make:requestForm Request with inline validation rules
make:route:permissionsmodularous:make:route:permissionsGenerate Spatie permission records for a route

Events & Async ​

CommandSignatureDescription
make:eventmodularous:make:eventLaravel Event class (broadcasting, deferred dispatch)
make:listenermodularous:make:listenerLaravel Listener class (queued, after-commit)
make:operationmodularous:make:operationOne-time operation file for the operations pipeline
make:horizon:supervisormodularous:make:horizon:supervisorSupervisor .conf for Laravel Horizon

Console ​

CommandSignatureDescription
make:commandmodularous:make:commandNew Artisan command class inside the Modularous vendor path

Themes & Frontend ​

CommandSignatureDescription
make:theme:foldermodularous:make:theme:folderScaffold a custom theme working folder
make:thememodularous:make:themePromote a custom theme into the built-in theme set
make:input:hydratemodularous:make:input:hydratePHP Hydrate class for a Vue input component
make:vue:inputmodularous:make:vue:inputVue single-file input component

Tests ​

CommandSignatureDescription
make:laravel:testmodularous:make:laravel:testPHPUnit Feature or Unit test file
make:vue:testmodularous:make:vue:testVitest/Jest test file for a Vue component or composable

Composite Wizard ​

CommandSignatureDescription
make:featuremodularous:make:featureInteractive 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" --addTranslation

Add 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 interactively

For the class internals of these commands see System Reference → Console → Make.