| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function toArray($request) |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | 'id' => $this->id, |
||
|
|
|||
| 28 | 'name' => $this->name, |
||
| 29 | 'email' => $this->name, |
||
| 30 | 'email_verified' => $this->email_verified, |
||
| 31 | 'gender' => $this->gender, |
||
| 32 | 'provider' => $this->provider, |
||
| 33 | 'created_at' => $this->created_at, |
||
| 34 | 'updated_at' => $this->updated_at, |
||
| 35 | 'roles' => collect(RoleResource::collection($this->roles)->toArray(null))->flatten(), |
||
| 36 | 'permissions' => collect(PermissionResource::collection($this->getAllPermissions() )->toArray(null))->flatten() |
||
| 37 | ]; |
||
| 40 |