31 lines
596 B
PHP
31 lines
596 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LelongBidder extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'lelongbidder';
|
|
|
|
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');
|
|
}
|
|
}
|