fix:dish
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user