Laravel 4 : Route to localhost/controller/action
问题 I'm more or less new to Laravel 4. I've never used routes before but normally what I'm used to is url/controller/action and then the backend routing for me. I've read the documentation for routes and controllers a few times as well as read through some tutorials and so, I'm trying to figure out how to get this to work without writing a route for every controller and action. I tried something like Route::get('{controller}/{action}', function($controller, $action = 'index'){ return $controller.