$init_page = Input::get('initial_page'); $rules = [ 'initial_page' => 'required_with:end_page|integer|min:1|digits_between: 1,5', 'end_page' => 'required_with:initial_page|integer|min:'. ($init_page+1) .'|digits_between:1,5' ];