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 ]);