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