It would be easier for you to do a normal upgrade, there are only a few simple steps.
as for you problem, probably you have deleted or replaced something in the new laravel installations (kernel or middlewares), which is required in the new version.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Recently I have ungraded my laravel project from 5.1 to 6. I upgraded the project like this->
first I created fresh laravel 6 project. then i copy paste my codes from my old version to new version. While doing so i'm facing this problem. I used separate controller and route for authenticating a user. while authenticating the user the login session is not persist, so it is redirecting me back to login page again. I've checked that my credential for login is correct and Auth::attempt also return true. But when i redirecting it to my desire route, that where it sent me to login page.
public function signInAction(Request $request)
if (Auth::attempt($loginCredentials)) {
$logonId = $secUserLogon[0]->logon_id;
$request->session()->put('sessLogonId', $logonId); // this session data in not available later on
return redirect()->intended(route('home::onlineInfo'));
}
}
I found a workaround, which seems not right. I have passed true as 2nd parameter in Auth::attempt which is letting me logged in the user. But if i put anything in session, its not persist either, and if i implement remember me, it will not work if user pass false. Can anyone help me out with this one?
Please or to participate in this conversation.