Files
database-pertani-web/app/Http/Resources/Ekosistem/KolomBasisDataResource.php
T

33 lines
906 B
PHP

<?php
namespace App\Http\Resources\Ekosistem;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class KolomBasisDataResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'label' => $this->label,
'kolom' => $this->kolom,
'tipe' => $this->tipe,
'validasi' => $this->validasi,
'urutan' => $this->urutan,
'relasi_tabel' => $this->relasi_tabel,
'relasi_kolom_id' => $this->relasi_kolom_id,
'relasi_kolom_label' => $this->relasi_kolom_label,
'enum_opsi' => $this->enum_opsi,
'is_active' => $this->is_active,
'is_browse' => $this->is_browse,
];
}
}