Skip to content

Commit

Permalink
Added full_name_cid data return
Browse files Browse the repository at this point in the history
E.g. "John Doe - 123456"
  • Loading branch information
blt950 committed Jun 24, 2022
1 parent 0bf6be4 commit a6aebbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Resources/UserCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function toArray($request)
'last_name' => ($this->tokenCan('full_name')) ? $this->last_name : null,

'full_name' => ($this->tokenCan('full_name')) ? "{$this->first_name} {$this->last_name}" : null,

'full_name_cid' => ($this->tokenCan('full_name')) ? "{$this->first_name} {$this->last_name} - {$this->id}" : null,

'email' => ($this->tokenCan('email')) ? $this->email : null,

Expand Down

0 comments on commit a6aebbf

Please sign in to comment.