0
votes

I'm missing something on laravel routing. Here's my route:

Route::controller('admin', 'AdminController', array('only' => array('index')));

Here's the controller:

// AdminController.php
class AdminController extends BaseController {
/**
 * @return Response
 */
  public function index()
  {
    return 'Admin!';
  }
}

When I visit /admin I get a 404 error. I'm not sure why! I would expect Admin!

2

2 Answers

0
votes

you should rename your index() method to getIndex() when your using Route::controller

0
votes