W3cubDocs

/Laravel 8

MethodValidator

class MethodValidator implements ValidatorInterface (View source)

Methods

bool matches(Route $route, Request $request)

Validate a given rule against a route and request.

Details

bool matches(Route $route, Request $request)

Validate a given rule against a route and request.

Parameters

Route $route
Request $request

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Routing/Matching/MethodValidator.html