Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function toArray($request) |
||
19 | { |
||
20 | return [ |
||
21 | 'id' => $this->id, |
||
22 | 'name' => $this->name, |
||
23 | 'email' => $this->email, |
||
24 | 'profilePicture' => $this->profile_picture, |
||
25 | 'notifications' => NotificationResource::collection($this->whenLoaded('notifications')), |
||
26 | 'readNotifications' => NotificationResource::collection($this->whenLoaded('readNotifications')), |
||
27 | 'unreadNotifications' => NotificationResource::collection($this->whenLoaded('unreadNotifications')), |
||
28 | 'groups' => AclGroupResource::collection($this->whenLoaded('groups')), |
||
29 | 'oauthClients' => OauthClientResource::collection($this->whenLoaded('oauthClients')), |
||
30 | 'locale' => $this->locale, |
||
31 | 'timeZone' => $this->time_zone, |
||
32 | 'createdAt' => $this->created_at, |
||
33 | 'updatedAt' => $this->updated_at, |
||
34 | ]; |
||
35 | } |
||
36 | } |
||
37 |