/**
  * @param User $user
  * @return array
  */
 public function transform(User $user)
 {
     return ['id' => (int) $user->id, 'uuid' => $user->uuid, 'name' => $user->name, 'email' => $user->email, 'active' => ['bool' => (bool) $user->active, 'formatted' => (bool) $user->active ? "Activo" : "Inactivo"], 'links' => ['edit' => route('users.edit', ['id' => $user->uuid]), 'profile' => route('user.profile', ['uuid' => $user->uuid])], 'avatar' => ['url' => $user->getAvatarImageUrl(), 'id' => $user->avatar]];
 }