08-06-2023, 05:07 PM
Firstly, I have the same problem on Laravel 5.8.
I confirm that the solution of @nayeem-azad is the good one, at least in my case.
One difference, in **App\Http\kernel.php**, I do not moved this line :
\Illuminate\Session\Middleware\StartSession::class
from ***protected $middlewareGroups*** to ***protected $middleware*** but only copied it to ***protected $middleware***.
Hope it helps ;-)
I confirm that the solution of @nayeem-azad is the good one, at least in my case.
One difference, in **App\Http\kernel.php**, I do not moved this line :
\Illuminate\Session\Middleware\StartSession::class
from ***protected $middlewareGroups*** to ***protected $middleware*** but only copied it to ***protected $middleware***.
Hope it helps ;-)