Support the ongoing development of Laravel.io →
Authentication Views Configuration
Last updated 2 years ago.
0

Can you paste your routes.php content?

0

Did you try to clear all cache?

0

a2sc said:

Did you try to clear all cache? Yes i already did :(

0

ronaldesc007 said:

Can you paste your routes.php content?

Route::get('auth/login', 'Auth\AuthController@getLogin'); Route::post('auth/login', 'Auth\AuthController@postLogin'); Route::get('auth/logout', 'Auth\AuthController@getLogout');

0

Not sure which laravel version are you using but if >5.1 check the following:

https://laravel.com/docs/5.1/authentication#included-authenticating

I understand that your login path is working and when you press login you get the error, according to documentation:

"When a user is not successfully authenticated, they will be redirected to the /auth/login"

So should start modifying/creating a $loginPath for unsuccessful login. And a $redirectPath for successful login and see if that solves the problem.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jsgspotifi jsgspotifi Joined 23 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.