fix bug with root routing.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user