$request->method() 和->isMethod()
$method = $request->method();
if ($request->isMethod('patch')) {
// Do something if request method is PATCH
}Last updated
$method = $request->method();
if ($request->isMethod('patch')) {
// Do something if request method is PATCH
}Last updated