So what I am trying to do is create a link the displays the user profile. The link I desire is localhost/user/{username} but the link I get with with the code I currently have is localhost/user?{username}. Here is my route code:
/* Profile Link */
Route::get('user/{username}', array(
'as' => 'profile-user-link'
));
I am not using a controller. Here is my view code:
<li><a href="{{ URL::route('profile-user-link', Auth::user()->username) }}">My Profile</a></li>
Can someone explain why I am not getting my desired link output. Thank you