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