File "UriValidator.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/laravel/framework/src/Illuminate/Routing/Matching/UriValidator.php
File size: 576 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Illuminate\Routing\Matching;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
class UriValidator implements ValidatorInterface
{
/**
* Validate a given rule against a route and request.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return bool
*/
public function matches(Route $route, Request $request)
{
$path = rtrim($request->getPathInfo(), '/') ?: '/';
return preg_match($route->getCompiled()->getRegex(), rawurldecode($path));
}
}