Symfony Component Debug Exception FatalThrowableError (E_RECOVERABLE_ERROR)Too few arguments to function AppHttpRequestsArticlePost::IlluminateFoundationProviders{closure}(), 0 passed and exactly 1 expected
1 回答
BIG阳
TA贡献1859条经验 获得超6个赞
$validator = Validator::make($request->all(),[ 'id' => 'required|integer', ],[ 'id.required'=>'订单id不能为空', 'id.integer'=>'订单id必须整数', ]); if ($validator->fails()) { $errors = $validator->errors()->toArray(); var_dump($errors); }
- 1 回答
- 0 关注
- 1329 浏览
添加回答
举报
0/150
提交
取消