Commit 9ca81296 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #589 from whitman/numeric-routes

Automatically wrap numeric routes in parentheses
parents d0cdfb97 14961350
......@@ -174,6 +174,7 @@ class Router {
*/
public static function register($method, $route, $action)
{
if (ctype_digit($route)) $route = "({$route})";
if (is_string($route)) $route = explode(', ', $route);
// If the developer is registering multiple request methods to handle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment