| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function toArray($request) |
||
| 19 | { |
||
| 20 | return [ |
||
| 21 | 'id' => $this->id, |
||
|
|
|||
| 22 | 'isActive' => $this->is_active, |
||
| 23 | 'email' => $this->email, |
||
| 24 | 'person' => new Person($this->whenLoaded('person')), |
||
| 25 | 'avatar' => new Avatar($this->whenLoaded('avatar')), |
||
| 26 | 'role' => new Role($this->whenLoaded('role')), |
||
| 27 | 'group' => new Group($this->whenLoaded('group')), |
||
| 28 | ]; |
||
| 30 | } |