Using morphTo() on services, added Ezypay payment Import
This commit is contained in:
@@ -4,10 +4,20 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
use App\Traits\NextKey;
|
||||
|
||||
class Payment extends Model
|
||||
{
|
||||
use NextKey;
|
||||
|
||||
const CREATED_AT = 'date_orig';
|
||||
const UPDATED_AT = 'date_last';
|
||||
const RECORD_ID = 'payment';
|
||||
|
||||
public $incrementing = FALSE;
|
||||
protected $table = 'ab_payment';
|
||||
protected $dates = ['date_payment'];
|
||||
protected $dateFormat = 'U';
|
||||
protected $with = ['account.country.currency','items'];
|
||||
|
||||
protected $appends = [
|
||||
|
Reference in New Issue
Block a user