allerta-vvf/backend/app/Http/Resources/DrivingLicenseResource.php

24 lines
560 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class DrivingLicenseResource extends JsonResource
{
/**
* Transform the resource into an array.
*/
public function toArray(Request $request): array
{
return [
'doc_type' => $this->doc_type,
'doc_number' => $this->doc_number,
'expiration_date' => $this->expiration_date,
'scan_uuid' => $this->scan_uuid,
'scan_url' => $this->scan_url,
];
}
}