ekosistem dan framework
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user