I'm trying to define named routes together with a RESTful controller. In my routes.php I have this:
Route::controller('blog', 'BlogController', array('getIndex' => 'home'));
Route::controller('login', 'LoginController');
And the method in BlogController:
public function getIndex()
{
return View::make('blog.home');
}
When I try to access /home I receive a NotFoundHttpException, all other routes work as expected.
Shouldn't this work? I found this third parameter for Route::controller() at this post.