Closed Michael-254 closed 1 year ago
Did you figure out the issue?
Nope I had to recreate a new Controller for auth
I have been trying to figure it out for over a month now, locally it is running fine but after deployment on the shared hosting it is giving this error and routes errors
"Nope I had to recreate a new Controller for auth"
Did that worked for you?
I have been trying to figure it out for over a month now, locally it is running fine but after deployment on the shared hosting it is giving this error and routes errors
same php and laravel version?
No php
I have been trying to figure it out for over a month now, locally it is running fine but after deployment on the shared hosting it is giving this error and routes errors
same php and laravel version?
No, laravel version is same but when i set the php to 8.0 it says dependencies for 8.1.2 so i update it to 8.1.2. I have tried every possible way but cant figure this out
Yes this worked for me
Yes this worked for me
Can you please help me out with this?
I solved this issue by changing app/Http/Controllers/Auth/LoginController.php
This issue is happening because of authenticated() function has been edited.
Update this function according to https://laravel.com/docs/7.x/authentication#authenticating-users
protected function authenticated(Request $request)
{
$credentials = $request->only('email', 'password');
if (Auth::attempt($credentials)) {
// Authentication passed...
return redirect()->intended(RouteServiceProvider::HOME);
}
}
Thanks man, this helps me a lot. Gracias!
Upon deployment on production, this occurs on attempt Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string,