Add ImportStatus Resource

This commit is contained in:
Daniel Supernault 2023-06-12 02:52:00 -06:00
parent 8c9f4da48a
commit 7dd45c23b7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);
}
}