'require|length:6,100', 'password' => 'require|length:4,100', ]; protected $message = [ 'cardno.require' => '请输入卡号', 'cardno.length' => '卡号格式不正确', 'password.require' => '请输入密码', 'password.length' => '密码格式不正确', ]; protected $scene = [ 'redeem' => ['cardno', 'password'], ]; }