Hello, I was using the composer's "php artisan serve" before to run my laravel app, and got no problem with it. But my adviser asked me to use xampp's apache instead for some purposes.
Now, im currently having some problems regarding the routing and accessing my app. I tried to login thru this http://localhost/MYLARAVELAP/public/auth/login, after clicking the login button, it redirect to this url http://localhost/auth/login and got an OBJECT NOT FOUND ERROR.
WHAT SHOULD I DO? Is there something to do here with the .htaccess? I really need help. Thank you so much.
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');
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community