ok

Mini Shell

Direktori : /home2/selectio/www/myclassicfit.com/app/Model/
Upload File :
Current File : /home2/selectio/www/myclassicfit.com/app/Model/WalletTransaction.php

<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\User;

class WalletTransaction extends Model
{
    use HasFactory;

    protected $casts = [
        'user_id' => 'integer',
        'credit' => 'float',
        'debit' => 'float',
        'admin_bonus'=>'float',
        'balance'=>'float',
        'reference'=>'string',
        'created_at'=>'string'
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}

Zerion Mini Shell 1.0