src/Console/MakeRoute.php
protected function webRouteExists($link)
    {
        $link = $this->removeTrailingSlashIfExists($link);
        $link = $this->removeDuplicatedTrailingSlashes($link);
        foreach (Route::getRoutes() as $value) {
            if (in_array(strtoupper($this->option('method')), array_merge($value->methods(), ['ANY'])) &&
                $value->uri() === $link) {
                return true;
            }
        }
        return false;
    }
protected function webRouteExists($link)
    {
        $link = $this->removeTrailingSlashIfExists($link);
        $link = $this->removeDuplicatedTrailingSlashes($link);
        foreach (Route::getRoutes() as $value) {
            if (in_array(strtoupper($this->option('method')), array_merge($value->methods(), ['ANY'])) &&
                $value->uri() === $link) {
                return true;
            }
        }
        return false;
    }
protected function webRouteExists ( $ link ) { $ link = $ this -> removeTrailingSlashIfExists ( $ link ) ; $ link = $ this -> removeDuplicatedTrailingSlashes ( $ link ) ; foreach ( Route :: getRoutes ( ) as $ value ) { if ( in_array ( strtoupper ( $ this -> option ( 'method' ) ) , array_merge ( $ value -> methods ( ) , [ 'ANY' ] ) ) && $ value -> uri ( ) === $ link ) { return true ; } } return false ; }
Check if web route exists.

@param $link
@return mixed
Check if web route exists .