forked from admin/services_core
21 lines
380 B
PHP
21 lines
380 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class WalletWithdrawal extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['amount' => 'decimal:2', 'fee' => 'decimal:2', 'processed_at' => 'datetime'];
|
|
}
|
|
|
|
public function wallet()
|
|
{
|
|
return $this->belongsTo(Wallet::class);
|
|
}
|
|
}
|