Files
ntspi-app/app/Http/Resources/ApplicantQuestionResource.php
T
2024-09-19 16:06:49 +05:00

30 lines
652 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ApplicantQuestionResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'first_name' => $this->first_name,
'last_name' => $this->last_name,
'email' => $this->email,
'phone' => $this->phone,
'text' => $this->text,
'created_at' => $this->created_at,
];
}
}