Browse Source

Merge pull request #1805 from JesseObrien/patch-1

Adding PATCH to the route register.
Taylor Otwell 11 years ago
parent
commit
9f64de98f7
1 changed files with 12 additions and 0 deletions
  1. 12 0
      laravel/routing/route.php

+ 12 - 0
laravel/routing/route.php

@@ -330,6 +330,18 @@ class Route {
 		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.
 	 *