1
1
1programmer2018-04-26 22:46:41
Laravel
1programmer, 2018-04-26 22:46:41

Why does it constantly redirect to the authorization form?

Hi all.
I registered php artisan make:auth, now the main one does not open and constantly maintain site.ru/login The
index page does not open, it redirects to authorization. What to do ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
1
1programmer, 2018-04-27
@1programmer

I solved the problem, I was stupid yesterday because it was too late) I
just transferred the opening of the page to a separate controller, because before that, the opening of the main and authorization were in the same HomeController, in which there was middleware, it didn’t even let me go to the main, just transferred the opening of the main and everything worked as it should

Y
Yan-s, 2018-04-26
@Yan-s

Log in.

I
ipokos, 2018-04-27
@ipokos

If you visit site.ru, and there is a redirect to site.ru/login
This means that you have ['middleware' => 'auth'] used in the route or in the group of routes in which the path to the main page is defined - '/'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question