Skip to content

make:controller:front ​

Create a front-end (public-facing) controller for a module

Signature: modularous:make:controller:front

Category: Make


Description ​

Generates a front-end controller in the module's Http/Controllers/Front/ path. Suitable for public-facing pages, Inertia.js views, or SSR routes. The stub receives the module name, studly/lower variants, and route name.


Usage ​

modularous:make:controller:front <module> <name>

Arguments ​

ArgumentRequiredDescription
moduleyesTarget module
nameyesController class name

Examples ​

bash
php artisan modularous:make:controller:front Blog Post
# → Blog/Http/Controllers/Front/PostController.php

Output ​

{Module}/Http/Controllers/Front/{Name}Controller.php

Stub: route-controller-front.stub


See also ​