$request->is()
Checks if the given method name matches the name of the request method.
$request->is(string $method): bool
Parameters
Name | Type | Default |
---|---|---|
$methodrequired | string |
no default value |
Return type
bool
This method modifies the existing $request
object it is applied to and returns it again.