*/ class Member extends BaseValidate { protected $rule = [ 'id|' => 'require|number', 'username|姓名' => 'require', 'password|密码' => 'require', 'mobile|手机号' => 'require|number', 'avatar|头像' => 'require', 'email|邮箱' => 'require', 'company|公司名称' => 'require', 'position|职务' => 'require', 'status|状态' => 'require|number|in:1,0', ]; protected $scene = [ 'add' => ['username', 'mobile','company'], 'edit' => ['id', 'username', 'mobile'], ]; }