πŸ“Š Trishul API
Q. How do you get path variables from the request?
Code:
$id = $request->____()->get('id');
  • (A) query_params
  • (B) path
  • (C) body
  • (D) header
πŸ’¬ Discuss
βœ… Correct Answer: (B) path

Explanation: path() returns the PathVariable object.

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
1
Total Visits
πŸ“½οΈ
3 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
95%
Success Rate