Add foreign keys to field in Category, Item models.
This commit is contained in:
@@ -15,6 +15,7 @@ class Category extends Model
|
||||
'uuid',
|
||||
'name',
|
||||
'url',
|
||||
'company_id',
|
||||
];
|
||||
|
||||
public function company(): BelongsTo
|
||||
|
||||
@@ -18,6 +18,7 @@ class Item extends Model
|
||||
'description',
|
||||
'price',
|
||||
'image',
|
||||
'category_id',
|
||||
];
|
||||
|
||||
public function category(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user