From 2fd9738575d775436b1e5c3509a155ed02aa8239 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Dec 2019 16:37:12 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/TicketController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/TicketController.php b/app/Http/Controllers/Admin/TicketController.php index a0434151..5ab6c7b9 100644 --- a/app/Http/Controllers/Admin/TicketController.php +++ b/app/Http/Controllers/Admin/TicketController.php @@ -26,7 +26,9 @@ class TicketController extends Controller $ticket['message'][$i]['is_me'] = false; } } - $ticket['user'] = User::find($ticket->user_id); + $ticket['user'] = User::find($ticket->user_id)->select([ + 'email' + ]); return response([ 'data' => $ticket ]);