<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;class ProductCategoryUpdateRequest extends FormRequest{public function authorize(){return true;}public function rules(){$P2gAC0=array();$P2g0='required|unique:product_categories,name,' . $this->get('id');$P2g1=$P2g0 . ',id|max:5';$P2gAC0['name']=$P2g1;$P2gAC0['icon']='required';$P2gAC0['banner']='required';$return=$P2gAC0;if($this->get('banner_redirect'))goto P2gBodyx2;goto P2gNextx2;P2gBodyx2:$return['banner_redirect']='url';goto P2gx1;P2gNextx2:P2gx1:return $return;}public function messages(){$P2gAC0=array();$P2gAC0['name.required']='请填写栏目名称';$P2gAC0['name.unique']='该栏目名称已存在';$P2gAC0['name.max']='栏目名称最大长度为5';$P2gAC0['icon.required']='请上传icon';$P2gAC0['banner.required']='请上传banner';$P2gAC0['banner_redirect.url']='banner跳转链接格式有误';return $P2gAC0;}}
?>