upgraded to laravel 10

This commit is contained in:
Denis Duliçi
2023-03-16 16:36:13 +03:00
parent f16d121c45
commit 37b0d4207e
34 changed files with 843 additions and 866 deletions

View File

@ -34,15 +34,6 @@ class Category extends Model
*/
protected $fillable = ['company_id', 'name', 'type', 'color', 'enabled', 'created_from', 'created_by', 'parent_id'];
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'enabled' => 'boolean',
];
/**
* Sortable columns.
*
@ -231,7 +222,7 @@ class Category extends Model
/**
* Get the display name of the category.
*/
*/
public function getDisplayNameAttribute()
{
return $this->name . ' (' . ucfirst($this->type) . ')';

View File

@ -40,8 +40,9 @@ class Currency extends Model
* @var array
*/
protected $casts = [
'rate' => 'double',
'enabled' => 'boolean',
'rate' => 'double',
'enabled' => 'boolean',
'deleted_at' => 'datetime',
];
/**

View File

@ -32,8 +32,9 @@ class Tax extends Model
* @var array
*/
protected $casts = [
'rate' => 'double',
'enabled' => 'boolean',
'rate' => 'double',
'enabled' => 'boolean',
'deleted_at' => 'datetime',
];
/**