public function prependRouteControllersWithPrefix($prefix)
    {
        foreach (parent::all() as $route) {
            $route->setDefault('_controller', $prefix.$route->getDefault('_controller'));
        }
    }
public function prependRouteControllersWithPrefix($prefix)
    {
        foreach (parent::all() as $route) {
            $route->setDefault('_controller', $prefix.$route->getDefault('_controller'));
        }
    }
public function prependRouteControllersWithPrefix ( $ prefix ) { foreach ( parent :: all ( ) as $ route ) { $ route -> setDefault ( '_controller' , $ prefix . $ route -> getDefault ( '_controller' ) ) ; } }
Adds controller prefix to all collection routes.

@param string $prefix
Adds controller prefix to all collection routes .