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.
This commit is contained in:
Daeng Deni Mardaeni
2024-11-05 12:01:05 +07:00
parent 39dff7c83c
commit c73bb674b0

View File

@@ -14,7 +14,7 @@ class KondisiBangunan extends Model
/** /**
* The attributes that are mass assignable. * The attributes that are mass assignable.
*/ */
protected $fillable = []; protected $fillable = ['code','name'];
protected static function newFactory(): KondisiBangunanFactory protected static function newFactory(): KondisiBangunanFactory
{ {