You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
533 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LoyaltyPointTransaction extends Model
{
public $timestamps = false;
protected $casts = [
'user_id' => 'integer',
'credit' => 'float',
'debit' => 'float',
'balance'=>'float',
'reference'=>'string'
];
/**
* Get the user that owns the LoyaltyPointTransaction
*
* @return \App\Models\User
*/
public function user()
{
return $this->belongsTo(User::class);
}
}