fix bug with root routing.
This commit is contained in:
parent
89ea17d9d9
commit
597feed4a7
|
|
@ -318,7 +318,7 @@ protected static function root($identifier, $controller, $root)
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue