src/Validation/Laravel/Validator.php
public function validateRouteExists($attribute, $value, $parameters) {
        $method = 'getBy' . studly_case(isset($parameters[0]) ? $parameters[0] : 'name');
        $routes = $this->router->getRoutes();
        return $routes->$method($value) !== null;
    }
public function validateRouteExists($attribute, $value, $parameters) {
        $method = 'getBy' . studly_case(isset($parameters[0]) ? $parameters[0] : 'name');
        $routes = $this->router->getRoutes();
        return $routes->$method($value) !== null;
    }
Determines if the given route exists.
If a parameter is provided it will determine whether the routes are fetched by name or action.

@param  string  $attribute
@param  mixed   $value
@param  array   $parameters
@return bool