UpgradeResource.php 576 B

1234567891011121314151617181920212223242526
  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. * @disregard
  12. */
  13. public function toArray(Request $request): array
  14. {
  15. return [
  16. 'id' => $this->id,
  17. 'name' => $this->name,
  18. 'email' => $this->email,
  19. 'created_at' => $this->created_at,
  20. 'updated_at' => $this->updated_at,
  21. ];
  22. }
  23. }