From bd931a779718f4114fa93ad00da943b635f85e38 Mon Sep 17 00:00:00 2001 From: blank <1136589038@qq.com> Date: Fri, 14 Jan 2022 23:08:33 +0800 Subject: [PATCH] =?UTF-8?q?fix/redirect=E6=B2=A1=E6=9C=89=E6=B8=85?= =?UTF-8?q?=E9=99=A4request=E5=AF=BC=E8=87=B4=E5=BC=95=E7=94=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Illuminate/Cleaners/SessionCleaner.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Cleaners/SessionCleaner.php b/src/Illuminate/Cleaners/SessionCleaner.php index 534108bf..cbef845b 100644 --- a/src/Illuminate/Cleaners/SessionCleaner.php +++ b/src/Illuminate/Cleaners/SessionCleaner.php @@ -35,9 +35,8 @@ public function clean() Facade::clearResolvedInstance('session.store'); if (isset($this->currentApp['redirect'])) { - /**@var Redirector $redirect */ - $redirect = $this->currentApp['redirect']; - $redirect->setSession($this->currentApp->make('session.store')); + $this->currentApp->forgetInstance('redirect'); + Facade::clearResolvedInstance('redirect'); } } } \ No newline at end of file