Mastering Development

Setting URL with logged in user id from the front end blade in LARAVEL 6

Hello I’m trying to set an URL (href) from my blade(welcome.blade.php) to logged in user’s user profile.

My url has to be like this ->

there, 24 is logged in user’s user id

<a href="')}}" class="btn btn-primary">profile</a>

but when I run the code it gives me following exception,

Facade\Ignition\Exceptions\ViewException syntax error, unexpected ‘}’, expecting ‘)’

Leave a Reply

Your email address will not be published. Required fields are marked *