Skip to content

Make Controller Front ​

Generate an Inertia frontend controller for a module.

Command Information ​

  • Signature: modularous:make:controller:front {module} {name}
  • Category: Generators

Arguments ​

ArgumentRequiredDescription
moduleYesThe module the controller belongs to (e.g. Blog)
nameYesController class name (e.g. Post → generates PostFrontController)

What It Does ​

Creates a frontend controller stub that uses Inertia::render() to return Vue page components to the browser. Use this for public-facing routes that need server-side data passed to Vue via Inertia props.

Examples ​

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

php artisan modularous:make:controller:front Shop Product