src/Console/MakeRoute.php
protected function validateMethod()
    {
        if (! in_array(strtoupper($this->option('method')), $methods = array_merge(Router::$verbs, ['ANY']))) {
            throw new MethodNotAllowedException($methods);
        }
    }
protected function validateMethod()
    {
        if (! in_array(strtoupper($this->option('method')), $methods = array_merge(Router::$verbs, ['ANY']))) {
            throw new MethodNotAllowedException($methods);
        }
    }
protected function validateMethod ( ) { if ( ! in_array ( strtoupper ( $ this -> option ( 'method' ) ) , $ methods = array_merge ( Router :: $ verbs , [ 'ANY' ] ) ) ) { throw new MethodNotAllowedException ( $ methods ) ; } }
Validate option method.
Validate option method .