From 318bb360723aafa57feed87147d3f921a720ed59 Mon Sep 17 00:00:00 2001 From: Jesse O'Brien Date: Fri, 22 Mar 2013 17:04:15 -0300 Subject: [PATCH] Adding PATCH to the route register. Self-explanatory. --- laravel/routing/route.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/laravel/routing/route.php b/laravel/routing/route.php index 1ce17f1a6c7..f2deba744c9 100644 --- a/laravel/routing/route.php +++ b/laravel/routing/route.php @@ -330,6 +330,18 @@ public static function put($route, $action) Router::register('PUT', $route, $action); } + /** + * Register a PATCH route with the router. + * + * @param string|array $route + * @param mixed $action + * @return void + */ + public static function patch($route, $action) + { + Router::register('PATCH', $route, $action); + } + /** * Register a DELETE route with the router. *