We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88cde2c + 318bb36 commit 9f64de9Copy full SHA for 9f64de9
laravel/routing/route.php
@@ -330,6 +330,18 @@ public static function put($route, $action)
330
Router::register('PUT', $route, $action);
331
}
332
333
+ /**
334
+ * Register a PATCH route with the router.
335
+ *
336
+ * @param string|array $route
337
+ * @param mixed $action
338
+ * @return void
339
+ */
340
+ public static function patch($route, $action)
341
+ {
342
+ Router::register('PATCH', $route, $action);
343
+ }
344
+
345
/**
346
* Register a DELETE route with the router.
347
*
0 commit comments