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