silent-auction/app/Models/Checkout.php
2022-08-08 14:57:49 -04:00

36 lines
630 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',
'created_at',
'updated_at'
];
protected $dates = [
'created_at',
'updated_at'
];
public function bidders()
{
return $this->belongsTo(Bidders::class, 'idbidders');
}
public function paymentMethod()
{
return $this->hasMany(PaymentMethods::class, 'payment_method', 'pm_id');
}
}