Fills the gaps between the admin panel screens and the backend: a full free-text + slide-count + language -> AI-generated presentation flow with new slide-cloning logic in TemplateFillService, a "my presentations" list endpoint, a swappable payment-gateway structure for wallet top-ups (fake driver for now), and avatar upload / public-profile toggle / account deletion / password change / notification preference endpoints. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
40 lines
767 B
PHP
40 lines
767 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\WalletDepositStatus;
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
#[Fillable([
|
|
'wallet_id',
|
|
'amount',
|
|
'status',
|
|
'gateway',
|
|
'reference_id',
|
|
'meta',
|
|
])]
|
|
class WalletDeposit extends Model
|
|
{
|
|
/**
|
|
* @return BelongsTo<Wallet, $this>
|
|
*/
|
|
public function wallet(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Wallet::class);
|
|
}
|
|
|
|
/**
|
|
* @return array<string, string>
|
|
*/
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'amount' => 'integer',
|
|
'status' => WalletDepositStatus::class,
|
|
'meta' => 'array',
|
|
];
|
|
}
|
|
}
|