protected $middleware = [ \Illuminate\Session\Middleware\StartSession::class, ];
在 kernel.php中 加入StartSession::class