added pargar

This commit is contained in:
2026-07-05 16:43:34 +03:30
parent 694fddc909
commit 7ac7bbdb90
27 changed files with 1341 additions and 493 deletions
+1
View File
@@ -47,6 +47,7 @@ class Customer extends Authenticatable implements JWTSubject
'total_referrals',
'credential_id',
'moshtari_code',
'pargar_account_id',
];
/**
-28
View File
@@ -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',
];
}
+36
View File
@@ -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);
}
}