Well you add it to the url right like this
mysite/enrollment/create?membership_id=3
Now you can use the request to get the value
$membershipId = Request::get('membership_id');
I would like to pass an ID of a model for example mysite/membership/3 to another model such as mysite/enrollment/create so that the enrollment model knows which membership to enroll a class into. Normally I would grab the ID from the URI but as you can see my target URI does not include an ID. My first thought would be to pass the ID with the enroll button that is being used but I am not sure if that would be the best way to do this. Any help/suggestion on this would be great.
Please or to participate in this conversation.