*/ public function toArray($request): array { return [ 'name' => $this->name, 'email' => $this->email, 'avatar' => [ 'src' => Storage::url('avatar.png'), ], ]; } }