ok

Mini Shell

Direktori : /home2/selectio/public_html/myclassicfit.com/app/Model/
Upload File :
Current File : //home2/selectio/public_html/myclassicfit.com/app/Model/LoyaltyPointTransaction.php

<?php

namespace App\Model;

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

class LoyaltyPointTransaction extends Model
{
    use HasFactory;

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

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

Zerion Mini Shell 1.0