Files
lpj/app/Models/KondisiBangunan.php
Daeng Deni Mardaeni c73bb674b0 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.
2024-11-05 12:01:05 +07:00

24 lines
532 B
PHP

<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\KondisiBangunanFactory;
class KondisiBangunan extends Model
{
use HasFactory;
protected $table = 'kondisi_bangunan';
/**
* The attributes that are mass assignable.
*/
protected $fillable = ['code','name'];
protected static function newFactory(): KondisiBangunanFactory
{
//return KondisiBangunanFactory::new();
}
}