I have one route in my routes.php like
Route::get('{subcat}', array(
'uses' => 'frontend\homeController@uploadAd'
))
And I found that the above route is effecting my userlogout route which is like this.
Route::get('userlogout', array(
'uses' => 'frontend\homeController@userlogout'
));
I am getting the {subcat} route parameter from the blade view like
<a href="{{ subcategoryslug}}">subcategoryname</a>
If I include my {subcat} route in routes.php, userlogout route does not work but, commenting out my {subcat} route or even modifying that route like:
Route::get('something/{subcat}', array(
'uses' => 'frontend\homeController@uploadAd'
))
enable user to log out from the system.
What am I doing wrong here? Is there anything that I can't specify only route parameter as my route name?