route('o')); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'change_date'=> [ 'required', 'date', 'after:today', ], 'product_id' => [ 'required', 'exists:products,id', Rule::notIn([request()->route('o')->product_id]), ], 'notes' => 'nullable|min:5', ]; } }