T
T
Troodi Larson2018-04-29 21:45:56
Laravel
Troodi Larson, 2018-04-29 21:45:56

Endless redirect? Why?

Why, with such routing, do I constantly redirect the page to itself?

Route::get('/register', function () {
    return view('register');
});

Chrome:
Страница недоступна
Сайт выполнил переадресацию слишком много раз.

UP: Now, in general, when entering the registration page, it redirects to the login. What are the jokes?
UP: Do browsers cache redirects? And how can we wean them from it? Only after 2 restarts did it work (of the browser).
UP: deleted all routes altogether, cache is missing anyway always redirects to /login endlessly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antonio Solo, 2018-04-29
@solotony

Might just go and have a look
artisan route:list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question