original_string: public static function configRoutes($groupConfig)
      {
  		$groups = '';
      	$i = 0;
      	foreach($groupConfig['register_groups'] as $key => $value) {
      		$i++;
  
      		if($i == 1){
      			$groups .= $value;
      		} else {
      			$groups .= '|' . $value;
      		}
      	}
  
         	Route::group([
         		'middleware' => 'groups:' . $groups
         	], function ($object) {
  
  			Route::post('/config/{group}/show', '\Niku\Cms\Http\Controllers\Config\ShowConfigController@init')->name('show');
  			Route::post('/config/{group}/edit', '\Niku\Cms\Http\Controllers\Config\EditConfigController@init')->name('edit');
  
  		});
      }
code: public static function configRoutes($groupConfig)
      {
  		$groups = '';
      	$i = 0;
      	foreach($groupConfig['register_groups'] as $key => $value) {
      		$i++;
  
      		if($i == 1){
      			$groups .= $value;
      		} else {
      			$groups .= '|' . $value;
      		}
      	}
  
         	Route::group([
         		'middleware' => 'groups:' . $groups
         	], function ($object) {
  
  			Route::post('/config/{group}/show', '\Niku\Cms\Http\Controllers\Config\ShowConfigController@init')->name('show');
  			Route::post('/config/{group}/edit', '\Niku\Cms\Http\Controllers\Config\EditConfigController@init')->name('edit');
  
  		});
      }
code_tokens: public static function configRoutes ( $ groupConfig ) { $ groups = '' ; $ i = 0 ; foreach ( $ groupConfig [ 'register_groups' ] as $ key => $ value ) { $ i ++ ; if ( $ i == 1 ) { $ groups .= $ value ; } else { $ groups .= '|' . $ value ; } } Route :: group ( [ 'middleware' => 'groups:' . $ groups ] , function ( $ object ) { Route :: post ( '/config/{group}/show' , '\Niku\Cms\Http\Controllers\Config\ShowConfigController@init' ) -> name ( 'show' ) ; Route :: post ( '/config/{group}/edit' , '\Niku\Cms\Http\Controllers\Config\EditConfigController@init' ) -> name ( 'edit' ) ; } ) ; }
docstring: Get a Cms route registrar.
  
  @param  array  $options
  @return RouteRegistrar
docstring_tokens: Get a Cms route registrar .