|
|
@@ -9,6 +9,11 @@ class StudentSelectResource extends JsonResource
|
|
|
{
|
|
|
public function toArray(Request $request): array
|
|
|
{
|
|
|
- return ['id' => $this->id, 'name' => $this->name];
|
|
|
+ return [
|
|
|
+ 'id' => $this->id,
|
|
|
+ 'name' => $this->name,
|
|
|
+ 'document_number' => $this->document_number,
|
|
|
+ 'birth_date' => $this->birth_date?->format('Y-m-d'),
|
|
|
+ ];
|
|
|
}
|
|
|
}
|