silent-auction/app/Models/PaymentMethods.php
2022-08-08 15:01:38 -04:00

26 lines
426 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PaymentMethods extends Model
{
protected $table = 'payment_methods';
protected $fillable = [
'pm_name',
'created_at',
'updated_at'
];
protected $dates = [
'created_at',
'updated_at'
];
public function checkout()
{
return $this->belongsTo(Checkout::class, 'payment_method', 'pm_id');
}
}