From ae3b9b7c30de62ad405e1fe8563ad11c4156cac9 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Oct 2019 21:28:09 +0800 Subject: [PATCH] update --- app/Http/Controllers/UserController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 55a953aa..e2cc3fe7 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -33,6 +33,7 @@ class UserController extends Controller if (!$user->save()) { abort(500, '保存失败'); } + $request->session()->flush(); return response([ 'data' => true ]);