Add ImportStatus Resource

pull/4466/head
Daniel Supernault 2 years ago
parent 8c9f4da48a
commit 7dd45c23b7
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -0,0 +1,20 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
use App\Services\StatusService;
class ImportStatus extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return StatusService::get($this->status_id, false);
}
}
Loading…
Cancel
Save