MCQs > Website Designing & Development > Laravel Framework > How to use laravel routing for unknown number of parameters in URL.

Laravel Framework MCQs

How to use laravel routing for unknown number of parameters in URL.

Answer

Correct Answer: //in routes.php Route::get('/{book?}/{chapter?}/{topic?}/{article?}', 'controller@func'); //in your controller public function func($book = null, $chapter = null, $topic = null, $article = null) { ... }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it