Which of the following is correct to have an optional parameter in route?
Correct Answer: Route::get('user/{name?}', function ($name = null) { return $name; });
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Laravel Framework MCQ Questions