AssociateValidationResource.php 463 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Http\Resources;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Http\Resources\Json\JsonResource;
  5. class AssociateValidationResource extends JsonResource
  6. {
  7. public function toArray(Request $request): array
  8. {
  9. return [
  10. 'id' => $this->id,
  11. 'name' => $this->name,
  12. 'cpf' => $this->cpf,
  13. 'registration' => $this->registration,
  14. 'avatar' => $this->avatar,
  15. ];
  16. }
  17. }