solve trailing data error

This commit is contained in:
harshjagad20
2021-12-18 15:08:05 +05:30
parent 2765f35f98
commit 2fd8d8a5f4
4 changed files with 0 additions and 42 deletions

View File

@ -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');