laravel 4.2管道基础验证错误

时间:2014-10-28 06:38:36

标签: laravel-4 laravel-validation

提交表单时收到错误

ErrorException(E_UNKNOWN)

数组到字符串转换

下面的

是生成错误而不验证表单的代码

      $rulesvalida=array(
        'txt_name' => 'required|min:3',
        'txt_phone_number' => 'required|numeric|min:8',
        'txt_street_name' => 'required|min:3',
        'txt_house_number' => 'required|min:3',
        'txt_floor' => 'required|min:3',
        'txt_side' => 'required|min:3',
        'txt_post_code' => 'required|min:4',
        'txt_post_town' => 'required|min:4',
        'txt_country' => 'required',
    );

          return Validator::make($data, $rulesvalida, Lang::get('validation'));

0 个答案:

没有答案