src/Resource.php
private function filterByMethod(array $methods, $alt)
    {
        $methods = array_flip(array_map('strtolower', $methods));

        foreach ($this->routes as $route) {
            if (isset($methods[$route->getAction()[1]]) === $alt) {
                $route->forget();
            }
        }
    }
private function filterByMethod(array $methods, $alt)
    {
        $methods = array_flip(array_map('strtolower', $methods));

        foreach ($this->routes as $route) {
            if (isset($methods[$route->getAction()[1]]) === $alt) {
                $route->forget();
            }
        }
    }
private function filterByMethod ( array $ methods , $ alt ) { $ methods = array_flip ( array_map ( 'strtolower' , $ methods ) ) ; foreach ( $ this -> routes as $ route ) { if ( isset ( $ methods [ $ route -> getAction ( ) [ 1 ] ] ) === $ alt ) { $ route -> forget ( ) ; } } }
Forget the grouped routes filtering by http methods.

@param string[] $methods
@param bool $alt Should remove?
Forget the grouped routes filtering by http methods .