I had the same error and got it resolved
it was all in the middleware kernel,
I had the Start Session and Share error session copied to the protected $middleware array before the Language Middleware everything worked fine with I removed it from $middleware array and left it in the $middlewareGroups web with the language and everthing was working fine for me.
hint: check php artisan route:list and make sure there is no middleware applied twice on your routes,
Credit goes to some guy here saying he used session_start(); in the begining of the route file which when i tried worked by was slow
\App\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
// \Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\MailConfigChange::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\Language::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\BaklySystems\Hydrogen\Http\Middleware\AdminPanelMenu::class,
], ```