UpgradeResource.php 583 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Http\Resources;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Http\Resources\Json\JsonResource;
  5. class UpgradeResource extends JsonResource
  6. {
  7. /**
  8. * Transform the resource into an array.
  9. *
  10. * @return array<string, mixed>
  11. *
  12. * @disregard
  13. */
  14. public function toArray(Request $request): array
  15. {
  16. return [
  17. 'id' => $this->id,
  18. 'name' => $this->name,
  19. 'email' => $this->email,
  20. 'created_at' => $this->created_at,
  21. 'updated_at' => $this->updated_at,
  22. ];
  23. }
  24. }