Laravel 的Validation验证规则,required_if、required_without等表示的意思
验证规则实例:publicfunctiondemo(Request$request){$this->validate(['name'=>'required','type'=>'required|in:1,2,3',//当type=1的时候words必传'words'=>'required_if:type,1|between:10,5000',//experitime和experimonth只能二选