29 lines
716 B
PHP
29 lines
716 B
PHP
<?php
|
|
|
|
namespace Modules\Lpj\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Lpj\Database\Factories\SpekKategoritBangunanFactory;
|
|
|
|
class SpekKategoritBangunan extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'spek_kategori_bangunan';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = ['code','name','status','authorized_status'];
|
|
|
|
|
|
public function bangunan()
|
|
{
|
|
return $this->hasMany(SpekBangunan::class, 'spek_kategori_bangunan_id');
|
|
}
|
|
protected static function newFactory(): SpekKategoritBangunanFactory
|
|
{
|
|
//return SpekKategoritBangunanFactory::new();
|
|
}
|
|
}
|