A

Admin • 831K Points
Coach

Q. How do you get path variables from the request?

Code:
$id = $request->____()->get('id');
  • (A) query_params
  • (B) path
  • (C) body
  • (D) header
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Trishul API
  • Hashtags:

Explanation by: Admin
path() returns the PathVariable object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.