public function delete($pattern, $callback, array $middleware = null, $name = null)
    {
        $this->addRoute('delete', $pattern, $callback, $middleware, $name);

        return $this;
    }
public function delete($pattern, $callback, array $middleware = null, $name = null)
    {
        $this->addRoute('delete', $pattern, $callback, $middleware, $name);

        return $this;
    }
public function delete ( $ pattern , $ callback , array $ middleware = null , $ name = null ) { $ this -> addRoute ( 'delete' , $ pattern , $ callback , $ middleware , $ name ) ; return $ this ; }
Defines a route which will respond to DELETE requests

@param string $pattern The route pattern for the URL
@param callable $callback The callback which should be handle the response
@param callable[] $middleware List of the middleware for the route
@param string $name (Optional) Route name. Used for reverse routing.

@return $this
Defines a route which will respond to DELETE requests