🆙 More fixes 🆙

This commit is contained in:
Remco committed 2026-01-19 21:04:53 +01:00
1 parent 451b7edda3
commit 8d3115678c
10 files changed
+75 -21

No files matched your search

@@ -17,11 +17,17 @@ class WebsiteRareValue extends Model
];
}
/**
* @return BelongsTo<WebsiteRareValueCategory, $this>
*/
public function category(): BelongsTo
{
return $this->belongsTo(WebsiteRareValueCategory::class, 'category_id');
}
/**
* @return BelongsTo<CatalogItem, $this>
*/
public function item(): BelongsTo
{
return $this->belongsTo(CatalogItem::class, 'item_id', 'item_ids');
@@ -9,6 +9,9 @@ class WebsiteRareValueCategory extends Model
{
protected $guarded = ['id', 'created_at', 'updated_at'];
/**
* @return HasMany<WebsiteRareValue, $this>
*/
public function furniture(): HasMany
{
return $this->hasMany(WebsiteRareValue::class, 'category_id');