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

namespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;class RoleUpdateRequest extends FormRequest{public function authorize(){return true;}public function rules(){$P2gAC0=array();$P2gAC0['type']='required';$P2g0='required|unique:roles,name,' . $this->get('id');$P2g1=$P2g0 . ',id|max:200';$P2gAC0['name']=$P2g1;$P2g2='required|unique:roles,name,' . $this->get('id');$P2g3=$P2g2 . ',id';$P2gAC0['display_name']=$P2g3;return $P2gAC0;}public function messages(){$P2gAC0=array();$P2gAC0['type.required']='请选择角色类型';$P2gAC0['name.required']='请填写角色标识';$P2gAC0['name.unique']='该角色标识已存在';$P2gAC0['display_name.required']='请填写角色显示名称';$P2gAC0['display_name.unique']='该角色显示名称已存在';return $P2gAC0;}}
?>