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

namespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;class UserCreateRequest extends FormRequest{public function authorize(){return true;}public function rules(){$P2gAC0=array();$P2gAC0['username']='required|between:6,50|unique:users';$P2gAC0['name']='required';$P2gAC0['password']='required|confirmed|between:6,18';$P2gAC0['role_id']='required';return $P2gAC0;}public function messages(){$P2gAC0=array();$P2gAC0['username.required']='请填写登录名';$P2gAC0['username.between']='登录名长度范围为6~50位';$P2gAC0['username.unique']='该登录名已存在';$P2gAC0['name.required']='请填写显示名称';$P2gAC0['password.required']='请填写密码';$P2gAC0['password.confirmed']='两次密码输入不一致';$P2gAC0['password.between']='密码长度范围为6~18位';$P2gAC0['password.regex']='密码中不能包含空格';$P2gAC0['role_id.required']='请选择角色';return $P2gAC0;}}
?>