penambahan table dan model surveyor

This commit is contained in:
majid
2024-10-16 08:50:11 +07:00
parent bb7eae74f3
commit 78618098ca
38 changed files with 1985 additions and 692 deletions

View File

@@ -0,0 +1,28 @@
<?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 = [];
public function bangunan()
{
return $this->hasMany(SpekBangunan::class, 'spek_kategori_bangunan_id');
}
protected static function newFactory(): SpekKategoritBangunanFactory
{
//return SpekKategoritBangunanFactory::new();
}
}