mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
solve trailing data error
This commit is contained in:
@ -34,13 +34,6 @@ class Expense extends Model implements HasMedia
|
||||
'exchange_rate' => 'float'
|
||||
];
|
||||
|
||||
public function setExpenseDateAttribute($value)
|
||||
{
|
||||
if ($value) {
|
||||
$this->attributes['expense_date'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(ExpenseCategory::class, 'expense_category_id');
|
||||
|
||||
Reference in New Issue
Block a user