This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-02-18 17:15:00 +08:00
parent a314c6153e
commit 39924b5780
8 changed files with 20 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ class DishRequest extends FormRequest
return [
'limit' => 'required|integer',
'dish_name' => 'sometimes|string',
'cycle_id' => 'sometimes|integer|exists:cycle,id',
'date' => 'sometimes',
'city_id' => 'sometimes|integer|exists:system_city,id',
'kitchen_id' => 'sometimes|integer|exists:kitchen,id',
@@ -32,7 +32,7 @@ class DishRequest extends FormRequest
}
protected array $scenes = [
'add' => ['dish_name','profile','pre_quantity','price','side_dish','flavor','cycle_id','city_id','kitchen_id'],
'add' => ['dish_name','profile','pre_quantity','price','side_dish','flavor','date','city_id','kitchen_id'],
'edit' => ['id','dish_name','profile','pre_quantity','price','side_dish','flavor'],
'list' =>['limit'],
'delete' =>['id'],