sarga/packages/Webkul/Sales/src/Models/OrderPayment.php

35 lines
775 B
PHP
Raw Normal View History

2018-10-04 06:42:06 +00:00
<?php
namespace Webkul\Sales\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Webkul\Sales\Database\Factories\OrderPaymentFactory;
2018-10-04 06:42:06 +00:00
use Webkul\Sales\Contracts\OrderPayment as OrderPaymentContract;
class OrderPayment extends Model implements OrderPaymentContract
{
use HasFactory;
2018-10-04 06:42:06 +00:00
protected $table = 'order_payment';
2018-10-05 06:18:58 +00:00
2020-03-04 06:32:53 +00:00
protected $guarded = [
'id',
'created_at',
'updated_at',
];
2021-02-03 07:23:34 +00:00
protected $casts = [
'additional' => 'array',
2021-02-03 07:23:34 +00:00
];
/**
* Create a new factory instance for the model.
*
* @return OrderPaymentFactory
*/
protected static function newFactory(): OrderPaymentFactory
{
return OrderPaymentFactory::new();
}
2018-10-04 06:42:06 +00:00
}