From e4ec8c4b92e702d95822801007983eea8763d0eb Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Oct 2019 15:35:47 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index d2fff23b..c0a93290 100644 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -34,7 +34,7 @@ class UserController extends Controller } else { $user = new User(); } - if (User::where('email', $request->input('email')->first())) { + if (User::where('email', $request->input('email'))->first()) { abort(500, '邮箱已被使用'); } if ($request->input('id') && !$request->input('password')) {