Update packages. Add docker support, move migration to command, add stocks as a new table.

This commit is contained in:
Krzysztof Płaczek
2024-10-12 09:08:32 +02:00
parent 8827daec5d
commit 39e0262036
12 changed files with 391 additions and 212 deletions

View File

@@ -29,6 +29,10 @@ class Product extends Model
{
return $this->hasMany(Price::class);
}
public function stock(): HasMany
{
return $this->hasMany(Stock::class);
}
public function toggleStarred(): self
{
@@ -42,5 +46,4 @@ class Product extends Model
get: fn(string $value) => array_reverse(json_decode($value, 1)),
);
}
}
}