'How to Use router-link Element in Laravel's Blade

link tag in blade. I can use it in vue like this;

app.vue;

<router-link to="/"><a class="nav-link">Home</a></router-link>

When I want to use in blade like this;

home.blade.php;
<router-link to="/"><a class="nav-link">Home</a></router-link>

Route is not working. What can I do?



Solution 1:[1]

You can use normal a tag , for the href you can pass link or route name for example

<a href="{{ route('home') }}">Home</a>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mohammad