41 lines
824 B
PHP
41 lines
824 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Pengesahan extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'pengesahan';
|
|
|
|
protected $fillable = [
|
|
'lelong_id',
|
|
'lelongbid_id',
|
|
'norujukan',
|
|
'disahkan_oleh',
|
|
'disahkan_pada',
|
|
'diminta_oleh',
|
|
'diminta_pada',
|
|
'status',
|
|
'status_ubah'
|
|
];
|
|
|
|
public function lelongbidmarhun()
|
|
{
|
|
return $this->belongsTo(LelongBidMarhun::class, 'lelongbidmarhun_id' , 'id');
|
|
}
|
|
|
|
public function lelong()
|
|
{
|
|
return $this->belongsTo(Lelong::class, 'lelong_id', 'id');
|
|
}
|
|
|
|
public function lelongbid()
|
|
{
|
|
return $this->belongsTo(LelongBid::class, 'lelongbid_id', 'id');
|
|
}
|
|
}
|