protected function convertToControllerAction($action): array
    {
        if (\is_string($action)) {
            $action = ['uses' => $action];
        }

        if ($this->hasGroupStack()) {
            $action['uses'] = $this->prependGroupNamespace($action['uses']);
        }

        $action['controller'] = $action['uses'];

        return $action;
    }
protected function convertToControllerAction($action): array
    {
        if (\is_string($action)) {
            $action = ['uses' => $action];
        }

        if ($this->hasGroupStack()) {
            $action['uses'] = $this->prependGroupNamespace($action['uses']);
        }

        $action['controller'] = $action['uses'];

        return $action;
    }
protected function convertToControllerAction ( $ action ) : array { if ( \ is_string ( $ action ) ) { $ action = [ 'uses' => $ action ] ; } if ( $ this -> hasGroupStack ( ) ) { $ action [ 'uses' ] = $ this -> prependGroupNamespace ( $ action [ 'uses' ] ) ; } $ action [ 'controller' ] = $ action [ 'uses' ] ; return $ action ; }
Add a controller based route action to the action array.

@param array|string $action

@return array
Add a controller based route action to the action array .