protected function matchesMethods(Request $request) {
        if (empty($this->methods)) {
            return true;
        }
        return in_array($request->getMethod(), $this->methods);
    }
protected function matchesMethods(Request $request) {
        if (empty($this->methods)) {
            return true;
        }
        return in_array($request->getMethod(), $this->methods);
    }
protected function matchesMethods ( Request $ request ) { if ( empty ( $ this -> methods ) ) { return true ; } return in_array ( $ request -> getMethod ( ) , $ this -> methods ) ; }
Tests whether or not a route matches the allowed methods for this route.

@param Request $request The request to test.
@return bool Returns `true` if the route allows the method, otherwise `false`.
Tests whether or not a route matches the allowed methods for this route .