File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace App \Http \Resources ;
4
+
5
+ use Illuminate \Http \Request ;
6
+ use Illuminate \Http \Resources \Json \JsonResource ;
7
+
8
+ class AuthenticatedUserResource extends JsonResource
9
+ {
10
+ /**
11
+ * Transform the resource into an array.
12
+ *
13
+ * @return array<string, mixed>
14
+ */
15
+ public function toArray (Request $ request ): array
16
+ {
17
+ return [
18
+ 'id ' => $ this ->id ,
19
+ 'name ' => $ this ->name ,
20
+ 'email_verified_at ' => $ this ->email_verified_at ,
21
+ 'email ' => $ this ->email ,
22
+ 'gravatar ' => $ this ->gravatar ,
23
+ ];
24
+ }
25
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " justd/laravel" ,
3
- "version" : " 1.4.3 " ,
3
+ "version" : " 1.4.4 " ,
4
4
"type" : " project" ,
5
5
"description" : " The skeleton application for the Laravel framework." ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments