I'm using resourceful routing and I need to pass a parameter to the index function of the controller.
public function index($id){
// do something with $id
}
If I try to create a form like (say $user->id = 3):
{{ Form::open(array('route' => array('scopes.index', $user->id))) }}
{{ Form::close() }}
I get in the html this link:
http://alumni.app/scopes?3 which is not good because it doesn't follow the URI for that named route. So, how should I proceed?
Discussion: I'm trying to load a list of scopes depending on the current user. I made an independent
scopes controller.