Skip to content

Commit 9f64de9

Browse files
committed
Merge pull request laravel#1805 from JesseObrien/patch-1
Adding PATCH to the route register.
2 parents 88cde2c + 318bb36 commit 9f64de9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

laravel/routing/route.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,18 @@ public static function put($route, $action)
330330
Router::register('PUT', $route, $action);
331331
}
332332

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+
333345
/**
334346
* Register a DELETE route with the router.
335347
*

0 commit comments

Comments
 (0)