Skip to content

Route Enable ​

Re-enable a previously disabled route within a module.

Command Information ​

  • Signature: modularous:route:enable {module} {route}
  • Category: Module

Arguments ​

ArgumentRequiredDescription
moduleYesThe module name (e.g. Blog)
routeYesThe route name to enable (e.g. posts)

What It Does ​

Looks up the module, checks whether the route is currently disabled, and calls $module->enableRoute($route) to activate it. If the route is already enabled, a notice is printed and no change is made.

Once enabled, the route is registered with the router on the next request.

Examples ​

bash
php artisan modularous:route:enable Blog posts
php artisan modularous:route:enable Shop api-products