src/Console/MakeRoute.php
protected function routeExists($link)
    {
        if ($this->option('api')) {
            return $this->apiRouteExists($link);
        }
        return $this->webRouteExists($link);
    }
protected function routeExists($link)
    {
        if ($this->option('api')) {
            return $this->apiRouteExists($link);
        }
        return $this->webRouteExists($link);
    }
protected function routeExists ( $ link ) { if ( $ this -> option ( 'api' ) ) { return $ this -> apiRouteExists ( $ link ) ; } return $ this -> webRouteExists ( $ link ) ; }
Check if route exists.

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