Q. How do you get path variables from the request?
Code:
$id = $request->____()->get('id');
β
Correct Answer: (B)
path
Explanation: path() returns the PathVariable object.