fix bug with root routing.

This commit is contained in:
Taylor Otwell 2012-02-12 15:23:20 -06:00
parent 89ea17d9d9
commit 597feed4a7
1 changed files with 1 additions and 1 deletions

View File

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