From 597feed4a740ba54cd97c0e48922886ccf1f4516 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 12 Feb 2012 15:23:20 -0600 Subject: [PATCH] fix bug with root routing. --- laravel/routing/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/routing/router.php b/laravel/routing/router.php index 8cc4b219..5908433a 100644 --- a/laravel/routing/router.php +++ b/laravel/routing/router.php @@ -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); }