From c73bb674b07577966050ff7e8228ada602d037cc Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Tue, 5 Nov 2024 12:01:05 +0700 Subject: [PATCH] Set 'fillable' attributes in KondisiBangunan model Updated the KondisiBangunan model to include 'code' and 'name' in the $fillable array. This ensures these attributes can be mass assigned, improving model flexibility and security. --- app/Models/KondisiBangunan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/KondisiBangunan.php b/app/Models/KondisiBangunan.php index 131c0fa..0fa0f86 100644 --- a/app/Models/KondisiBangunan.php +++ b/app/Models/KondisiBangunan.php @@ -14,7 +14,7 @@ class KondisiBangunan extends Model /** * The attributes that are mass assignable. */ - protected $fillable = []; + protected $fillable = ['code','name']; protected static function newFactory(): KondisiBangunanFactory {