['required', 'string', 'max:191'], 'description' => ['required'], 'range_amount' => ['nullable', 'string', 'max:191'], 'payout_amount' => ['required'], 'min_range' => ['required', 'numeric', 'min:1', 'lt:max_range'], 'max_range' => ['required', 'numeric', 'min:1', 'gt:min_range'] ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } public function messages() { return [ 'min_range.lt' => 'The min range must be less than max range.', 'max_range.gt' => 'The max range must be greater than min range.', ]; } }