add spacing to router.
This commit is contained in:
parent
9ca81296d8
commit
4f036cf7dd
|
@ -175,6 +175,7 @@ public static function group($attributes, Closure $callback)
|
||||||
public static function register($method, $route, $action)
|
public static function register($method, $route, $action)
|
||||||
{
|
{
|
||||||
if (ctype_digit($route)) $route = "({$route})";
|
if (ctype_digit($route)) $route = "({$route})";
|
||||||
|
|
||||||
if (is_string($route)) $route = explode(', ', $route);
|
if (is_string($route)) $route = explode(', ', $route);
|
||||||
|
|
||||||
// If the developer is registering multiple request methods to handle
|
// If the developer is registering multiple request methods to handle
|
||||||
|
|
Loading…
Reference in New Issue