*/ public function toArray($request): array { return [ 'firstname' => $this->firstname, 'lastname' => $this->lastname, 'avatar_url' => $this->getGravatarUrl(), 'email' => $this->email, 'id' => $this->id, 'avatar' => [ 'src' => Storage::url('avatar.png'), ], ]; } public static function meta(): array { return [ 'links' => [] ]; } }