From 18e1d637601989cd50294a1b2fdfbab8972862f2 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" <74361521+FatihKoz@users.noreply.github.com> Date: Wed, 23 Dec 2020 19:27:01 +0300 Subject: [PATCH] Update User.php (#968) We should be able to send the private name with the api too. --- app/Http/Resources/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Resources/User.php b/app/Http/Resources/User.php index 141cd5d1..3d9f8d81 100644 --- a/app/Http/Resources/User.php +++ b/app/Http/Resources/User.php @@ -16,6 +16,7 @@ class User extends Resource 'pilot_id' => $this->pilot_id, 'ident' => $this->ident, 'name' => $this->name, + 'name_private' => $this->name_private, 'email' => $this->email, 'avatar' => $this->resolveAvatarUrl(), 'rank_id' => $this->rank_id,