S
S
Sergei2020-04-27 22:01:45
Laravel
Sergei, 2020-04-27 22:01:45

Why are named links not working in laravel 7?

I registered several routes in routes/web.php, in the usual writing everything works, as soon as I added name links, a 404 error, and for other routes, name links work properly, what's wrong?
the code:

Route::get('/digital-poligrafiya', function () {
    return view('digital-poligrafiya');
})->name('poligrafiya');

code on page:
<a href="{{route('poligrafiya')}}" class="mt-4 btn btn-lg btn-block btn-primary" role="button">Подробнее</a>

This is how the link is displayed in the browser:
site.lar/%7B%7Brute( 'poligrafiya')%7D%7D

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2020-04-27
@JhaoDa

First, it's not about "named" links.
Secondly, you need to read the documentation .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question