Add foreign keys to field in Category, Item models.

This commit is contained in:
2023-06-19 15:04:02 +03:00
parent 90edc9bdf4
commit e0ec4f1efa
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ class Item extends Model
'description',
'price',
'image',
'category_id',
];
public function category(): BelongsTo