Skip to content

Commit

Permalink
Merge pull request laravel#1805 from JesseObrien/patch-1
Browse files Browse the repository at this point in the history
Adding PATCH to the route register.
  • Loading branch information
taylorotwell committed Mar 22, 2013
2 parents 88cde2c + 318bb36 commit 9f64de9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions laravel/routing/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 9f64de9

Please sign in to comment.