create models
This commit is contained in:
19
app/Models/PaymentMethods.php
Normal file
19
app/Models/PaymentMethods.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentMethods extends Model
|
||||
{
|
||||
protected $table = 'payment_methods';
|
||||
protected $fillable = [
|
||||
'pm_name'
|
||||
];
|
||||
|
||||
public function checkout()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Checkout', 'payment_method', 'pm_id');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user