You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class CoinHistory extends Model
|
|
|
|
{
|
|
|
|
protected $fillable = [
|
|
|
|
'debit',
|
|
|
|
'credit',
|
|
|
|
'description',
|
|
|
|
'customer_id',
|
|
|
|
'related_type',
|
|
|
|
'related_id',
|
|
|
|
];
|
|
|
|
|
|
|
|
public function customer()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Customer::class);
|
|
|
|
}
|
|
|
|
}
|