I am using Laravel 4. I am trying to use named route. The following url gives a "Controller method not found" error. I will appreciate any help.
I understand that route order matters , and the deepest urls are supposed to go first, hence my current route.php looks :
Route::get('student/{id}', array('as'=>'student.practice' , 'uses'=>'StudentsController@practice'));
Route::controller('users', 'UsersController');
Route::controller('students', 'StudentsController');
I have tried changing the order that. It makes no difference.
My StudentController does have a getPractice method.
public function getPractice($id)
{
return View::make('students.practice')
->with('student', Student::find($id));
}