донат шоп, управление магазином, яндекс метрика

This commit is contained in:
2026-07-19 19:17:29 +04:00
parent 8bf1b852f0
commit df7f98fe8b
48 changed files with 1859 additions and 18 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class BalanceTransaction extends Model
{
public const TYPE_DEPOSIT = 'deposit';
public const TYPE_SPEND = 'spend';
public const TYPE_ADMIN_CREDIT = 'admin_credit';
public const TYPE_ADMIN_DEBIT = 'admin_debit';
protected $connection = 'azerothcore_auth';
protected $table = 'balance_transactions';
protected $guarded = [];
public const UPDATED_AT = null;
protected function casts(): array
{
return ['amount' => 'decimal:2', 'balance_after' => 'decimal:2', 'metadata' => 'array'];
}
}