29 lines
525 B
PHP
29 lines
525 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Checkout extends Model
|
||
|
{
|
||
|
protected $table = 'checkout';
|
||
|
protected $fillable = [
|
||
|
'bidder_num',
|
||
|
'winnertotal',
|
||
|
'payment_method',
|
||
|
'check_number',
|
||
|
'cc_transaction',
|
||
|
'cc_amount'
|
||
|
];
|
||
|
|
||
|
public function bidder()
|
||
|
{
|
||
|
return $this->belongsTo('App\Models\Bidders', 'bidder_num', 'idbidders');
|
||
|
}
|
||
|
|
||
|
public function paymentMethod()
|
||
|
{
|
||
|
return $this->hasMany('App\Models\PaymentMethods', 'payment_method', 'pm_id');
|
||
|
}
|
||
|
}
|