Laravel request validation with multiple forms on the same page
问题 I have three different forms on the same page. All inputs has it's own validation rules, code in Request file has structure like this: public function rules() { return [ // 'sold' => 'required', 'unit_in_stock' => 'required', 'unit_price_gbp' => 'required', 'returned_item' => 'required', ]; } public function messages() { return [ 'sold.required' => 'Please enter quantity of sold parts', 'unit_in_stock.required' => 'Please enter quantity of sold parts', 'unit_price_gbp.required' => 'Please