From 981bc0d494e020c879a9534c089fb0f0c888b4ff Mon Sep 17 00:00:00 2001 From: ahmadafriadi Date: Tue, 14 Jul 2026 23:05:16 +0700 Subject: [PATCH] Update Master Komoditas --- app/Models/Pertanian/Komoditas.php | 1 + resources/views/master/komoditas/index.blade.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/Models/Pertanian/Komoditas.php b/app/Models/Pertanian/Komoditas.php index fc044b0..1b1b31c 100644 --- a/app/Models/Pertanian/Komoditas.php +++ b/app/Models/Pertanian/Komoditas.php @@ -18,6 +18,7 @@ class Komoditas extends Model protected $fillable = [ 'nama', + 'kode', 'created_by', 'updated_by', 'deleted_by', diff --git a/resources/views/master/komoditas/index.blade.php b/resources/views/master/komoditas/index.blade.php index b15cbf2..e251ea4 100644 --- a/resources/views/master/komoditas/index.blade.php +++ b/resources/views/master/komoditas/index.blade.php @@ -49,6 +49,7 @@ No Nama Komoditas + Kode Komoditas Aksi @@ -57,6 +58,7 @@ {{ $komoditas->firstItem() + $index }} {{ $item->nama }} + {{ $item->kode }}