added pargar
This commit is contained in:
@@ -47,6 +47,7 @@ class Customer extends Authenticatable implements JWTSubject
|
||||
'total_referrals',
|
||||
'credential_id',
|
||||
'moshtari_code',
|
||||
'pargar_account_id',
|
||||
|
||||
];
|
||||
/**
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Pargar extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'pargar_reqasts';
|
||||
protected $fillable = [
|
||||
'm',
|
||||
'route',
|
||||
'ip',
|
||||
'data',
|
||||
'finance_head',
|
||||
'finance_data',
|
||||
'response',
|
||||
'function_name',
|
||||
];
|
||||
protected $casts = [
|
||||
'data' => 'json',
|
||||
'finance_head' => 'json',
|
||||
'finance_data' => 'json',
|
||||
'response' => 'json',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class PargarSyncLog extends Model
|
||||
{
|
||||
protected $table = 'pargar_sync_logs';
|
||||
|
||||
protected $fillable = [
|
||||
'customer_id',
|
||||
'amount',
|
||||
'desc',
|
||||
'order_id',
|
||||
'withdraw_id',
|
||||
'date',
|
||||
'type',
|
||||
'sync_status',
|
||||
'sync_log',
|
||||
'pargar_ref',
|
||||
'res',
|
||||
'data',
|
||||
];
|
||||
|
||||
public function customer(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Customer::class);
|
||||
}
|
||||
|
||||
public function order(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Order::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user