1
0

Giant Update

This commit is contained in:
Wian Drs
2026-07-31 13:57:11 +07:00
parent f68d967c8b
commit b0d08211ec
112 changed files with 6674 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PaymentGatewayAccount extends Model
{
protected $guarded = ['id'];
protected $hidden = ['credentials', 'webhook_secret'];
protected function casts(): array
{
return [
'credentials' => 'encrypted:array',
'webhook_secret' => 'encrypted',
'settings' => 'array',
'enabled' => 'boolean',
'is_default' => 'boolean',
'last_health_check_at' => 'datetime',
];
}
public function provider()
{
return $this->belongsTo(PaymentProvider::class, 'payment_provider_id');
}
public function tenant()
{
return $this->belongsTo(Tenant::class);
}
}