protected function getResourceAction(string $resource, string $controller, string $method, array $options): array
    {
        $name = $this->getResourceRouteName($resource, $method, $options);

        $action = ['as' => $name, 'uses' => $controller . '@' . $method];

        if (isset($options['middleware'])) {
            $action['middleware'] = $options['middleware'];
        }

        if (isset($options['bypass'])) {
            $action['bypass'] = $options['bypass'];
        }

        return $action;
    }
protected function getResourceAction(string $resource, string $controller, string $method, array $options): array
    {
        $name = $this->getResourceRouteName($resource, $method, $options);

        $action = ['as' => $name, 'uses' => $controller . '@' . $method];

        if (isset($options['middleware'])) {
            $action['middleware'] = $options['middleware'];
        }

        if (isset($options['bypass'])) {
            $action['bypass'] = $options['bypass'];
        }

        return $action;
    }
protected function getResourceAction ( string $ resource , string $ controller , string $ method , array $ options ) : array { $ name = $ this -> getResourceRouteName ( $ resource , $ method , $ options ) ; $ action = [ 'as' => $ name , 'uses' => $ controller . '@' . $ method ] ; if ( isset ( $ options [ 'middleware' ] ) ) { $ action [ 'middleware' ] = $ options [ 'middleware' ] ; } if ( isset ( $ options [ 'bypass' ] ) ) { $ action [ 'bypass' ] = $ options [ 'bypass' ] ; } return $ action ; }
Get the action array for a resource route.

@param string $resource
@param string $controller
@param string $method
@param array  $options

@return array
Get the action array for a resource route .