Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function toArray($request) |
||
16 | { |
||
17 | return [ |
||
18 | 'id' => $this->id, |
||
|
|||
19 | 'name' => $this->name, |
||
20 | 'permissions' => $this->permissions, |
||
21 | 'user' => new User($this->whenLoaded('user')), |
||
22 | 'user_id' => $this->user_id, |
||
23 | 'last_used_at' => $this->last_used_at, |
||
24 | 'created_at' => $this->created_at, |
||
25 | 'updated_at' => $this->updated_at, |
||
26 | 'plain_text_token' => $this->when($this->plain_text_token, $this->plain_text_token), |
||
27 | 'authorized_actions' => $this->authorizedActions(), |
||
28 | ]; |
||
31 |