upgraded to laravel 10
This commit is contained in:
@ -34,12 +34,11 @@ class Company extends Eloquent implements Ownable
|
||||
*/
|
||||
protected $appends = ['location'];
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $fillable = ['domain', 'enabled', 'created_from', 'created_by'];
|
||||
|
||||
protected $casts = [
|
||||
'enabled' => 'boolean',
|
||||
'enabled' => 'boolean',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
|
||||
public $allAttributes = [];
|
||||
|
@ -15,7 +15,6 @@ use Bkwld\Cloner\Cloneable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
|
||||
class Contact extends Model
|
||||
{
|
||||
use Cloneable, Contacts, Currencies, HasFactory, Media, Notifiable, Transactions;
|
||||
@ -59,15 +58,6 @@ class Contact extends Model
|
||||
'created_by',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'enabled' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
* Sortable columns.
|
||||
*
|
||||
|
@ -20,15 +20,6 @@ class Dashboard extends Model
|
||||
*/
|
||||
protected $fillable = ['company_id', 'name', 'enabled', 'created_from', 'created_by'];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'enabled' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
* Sortable columns.
|
||||
*
|
||||
|
@ -36,9 +36,10 @@ class Item extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'sale_price' => 'double',
|
||||
'purchase_price' => 'double',
|
||||
'enabled' => 'boolean',
|
||||
'sale_price' => 'double',
|
||||
'purchase_price' => 'double',
|
||||
'enabled' => 'boolean',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,9 @@ class Media extends BaseMedia
|
||||
{
|
||||
use Owners, SoftDeletes, Sources, Tenants;
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $fillable = ['company_id', 'created_from', 'created_by'];
|
||||
|
||||
protected $casts = [
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
@ -43,7 +43,8 @@ class Recurring extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'auto_send' => 'boolean',
|
||||
'auto_send' => 'boolean',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,8 @@ class Report extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'settings' => 'object',
|
||||
'settings' => 'object',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,8 @@ class Widget extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'settings' => 'object',
|
||||
'settings' => 'object',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user