Skip to content

Commit 2361313

Browse files
committed
Update README.md
1 parent 83c5981 commit 2361313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ class UserResource extends JsonResource implements Anonymizable
201201

202202
public function toArray(Request $request): array
203203
{
204-
return [
204+
return $this->toAnonymized([
205205
'id' => $this->id,
206206
'name' => $this->name,
207207
'email' => $this->email,
208208
'phone' => $this->phone,
209-
];
209+
]);
210210
}
211211

212212
public function getAnonymizedAttributes(Generator $faker): array

0 commit comments

Comments
 (0)