protected function addResourceDestroy(string $name, string $base, string $controller, array $options): RouteContract
    {
        $uri = $this->getResourceUri($name, $options) . '/{' . $base . '}';

        $action = $this->getResourceAction($name, $controller, 'destroy', $options);

        return $this->router->delete($uri, $action);
    }
protected function addResourceDestroy(string $name, string $base, string $controller, array $options): RouteContract
    {
        $uri = $this->getResourceUri($name, $options) . '/{' . $base . '}';

        $action = $this->getResourceAction($name, $controller, 'destroy', $options);

        return $this->router->delete($uri, $action);
    }
protected function addResourceDestroy ( string $ name , string $ base , string $ controller , array $ options ) : RouteContract { $ uri = $ this -> getResourceUri ( $ name , $ options ) . '/{' . $ base . '}' ; $ action = $ this -> getResourceAction ( $ name , $ controller , 'destroy' , $ options ) ; return $ this -> router -> delete ( $ uri , $ action ) ; }
Add the destroy method for a resourceful route.

@param string $name
@param string $base
@param string $controller
@param array  $options

@return Route
Add the destroy method for a resourceful route .