Merged in izzati-feat-format-notis-lelong-baru-30jun (pull request #40)
Izzati feat format notis lelong baru 30jun
This commit is contained in:
@@ -13,6 +13,7 @@ class Lelong extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'tarikh_lelong',
|
||||
'masamula_lelong',
|
||||
'masatamat_lelong',
|
||||
'kali',
|
||||
'harga_emas_asas',
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LelongBidderTemp extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'lelongbidder_temp';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'lelongbid_id',
|
||||
'nama_bidder',
|
||||
'hargabida',
|
||||
'notelbimbit',
|
||||
'nilaimarhun',
|
||||
'cajlelong',
|
||||
'status_bidder',
|
||||
'status_payment',
|
||||
'masa_bidaan'
|
||||
];
|
||||
|
||||
public function lelongbid() {
|
||||
return $this->hasOne(LelongBid::class,'id', 'lelongbid_id');
|
||||
}
|
||||
|
||||
public function payment()
|
||||
{
|
||||
return $this->hasOne(Payment::class, 'lelongbid_id', 'lelongbid_id')->where('remark', '<>', '');
|
||||
}
|
||||
|
||||
public function scanjual() {
|
||||
return $this->hasOne(ScanJual::class, 'lelongbid_id', 'lelongbid_id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user