Importer update add support for meta data and multiple inserts for some entities like addresses and phones, updated other things
This commit is contained in:
@@ -27,6 +27,7 @@ class Contract extends Model
|
||||
'client_case_id',
|
||||
'type_id',
|
||||
'description',
|
||||
'meta',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
@@ -35,6 +36,13 @@ class Contract extends Model
|
||||
'type_id',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'meta' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function type(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(\App\Models\ContractType::class, 'type_id');
|
||||
|
||||
Reference in New Issue
Block a user