update form menu surveyor
This commit is contained in:
29
app/Models/ObjekJaminan.php
Normal file
29
app/Models/ObjekJaminan.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\ObjekJaminanFactory;
|
||||
|
||||
class ObjekJaminan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'objek_jaminan';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['name_objek', 'foto_jaminan_id', 'foto_objek'];
|
||||
|
||||
|
||||
|
||||
public function lantaiUnit(){
|
||||
return $this->hasMany(LantaiUnit::class, 'objek_jaminan_id', 'foto_jaminan_id');
|
||||
}
|
||||
|
||||
protected static function newFactory(): ObjekJaminanFactory
|
||||
{
|
||||
//return ObjekJaminanFactory::new();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user