fix bug with root routing.

This commit is contained in:
Taylor Otwell
2012-02-12 15:23:20 -06:00
parent 89ea17d9d9
commit 597feed4a7

View File

@@ -318,7 +318,7 @@ class Router {
// to point the pattern to the controller's index method. // to point the pattern to the controller's index method.
$pattern = trim($root.'/'.$home, '/') ?: '/'; $pattern = trim($root.'/'.$home, '/') ?: '/';
$attributes = array('uses' => "{$identifier}@(:1)", 'defaults' => 'index'); $attributes = array('uses' => "{$identifier}@index");
static::register('*', $pattern, $attributes); static::register('*', $pattern, $attributes);
} }