Remove recipe name field; use product title internally
Deploy / deploy (push) Successful in 15s

The recipe name input is dropped from the product form — the version
number alone identifies a recipe. The product title is stored as the
internal name to satisfy the NOT NULL constraint. The history table
no longer shows the name column.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 06:00:18 +02:00
1 parent a7e7375edd
commit 269570c7d6
4 files changed
+6 -19

No files matched your search

@@ -27,12 +27,11 @@ class CreateProduct extends CreateRecord
]);
}
$recipeName = $data['recipe_name'] ?? null;
$spices = $data['recipe_spices'] ?? [];
$spices = $data['recipe_spices'] ?? [];
if ($recipeName) {
if (! empty($spices)) {
$recipe = Recipe::create([
'name' => $recipeName,
'name' => $data['title'],
'product_id' => $record->id,
'version' => 1,
]);