How to get the value of URL parameters into Controller (Laravel)
1. If you have your parameter attached to the URL after the question mark like
http://www.yoursite.com/controllerMethod?key=value
Your route for this controller will look something like this
You can get the value of this parameter in your controller function by
2. If you have your parameter attached to the URL without a question mark like
http://www.yoursite.com/controllerMethod/value
Your route for this controller will look something like this
You can get the value of this parameter in your controller function bypassing the same name of the variable in your controller method as you used in the route.
0 Comments
CAN FEEDBACK
Emoji