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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user