Route::get('{category}/{subcategory}/{slug}', 'Controller@method');
Feb 14, 2018
2
Level 1
Route with 2 parameters
Can anybody help with my route problem?
I'm trying to create a route to a 'blog' but have a category and a subcategory in the url before it.
I've managed to create an example.com/category/slug URL, but I would like a example.com/category/subcategory/slug
Please be aware that the category and sub category will be loaded in dynamically and not hard coded.
Any feedback is greatly appreciated. Thanks a lot in advance.
Level 46
1 like
Please or to participate in this conversation.