public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);

        return $this->runRoute($this->currentRequest, $route);
    }
public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);

        return $this->runRoute($this->currentRequest, $route);
    }
public function respondWithRoute ( $ name ) { $ route = tap ( $ this -> routes -> getByName ( $ name ) ) -> bind ( $ this -> currentRequest ) ; return $ this -> runRoute ( $ this -> currentRequest , $ route ) ; }
Return the response returned by the given route.

@param  string  $name
@return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
Return the response returned by the given route .