ErrorExceptionin231fc75b6c74a1fbf052a6dfb956055729407119.php line 32:
Undefined variable: errors
in231fc75b6c74a1fbf052a6dfb956055729407119.php line 32
at HandleExceptions->handleError('8', 'Undefined variable: errors', '/Users/thinkings/jjcs/storage/framework/views/231fc75b6c74a1fbf052a6dfb956055729407119.php', '32', array('__path' => '/Users/thinkings/jjcs/storage/framework/views/231fc75b6c74a1fbf052a6dfb956055729407119.php', '__data' => array('__env' => object(Factory), 'app' => object(Application)), 'obLevel' => '0', '__env' => object(Factory), 'app' => object(Application))) in231fc75b6c74a1fbf052a6dfb956055729407119.php line 32
at include('/Users/thinkings/jjcs/storage/framework/views/231fc75b6c74a1fbf052a6dfb956055729407119.php') inPhpEngine.php line 42
at PhpEngine->evaluatePath('/Users/thinkings/jjcs/storage/framework/views/231fc75b6c74a1fbf052a6dfb956055729407119.php', array('__env' => object(Factory), 'app' => object(Application))) inCompilerEngine.php line 59
at CompilerEngine->get('/Users/thinkings/jjcs/resources/views/createitem.blade.php', array('__env' => object(Factory), 'app' => object(Application))) inView.php line 135
at View->getContents()inView.php line 106
at View->renderContents()inView.php line 80
at View->render()inResponse.php line 53
我用的是laravel5.3按照视频教程来的,用的是request来进行表单验证
store方法里 写了 public function store(Requests\storeArticleRequest $request)
为啥报错呢,报ReflectionException in Route.php line 339:
Class App\Http\Controllers\Requests\storeArticleRequest does not exist,困扰好久了。。。
BadMethodCallException in Validator.php line 3295:
Method [validateRequire] does not exist.
in Validator.php line 3295
at Validator->__call(‘validateRequire’, array(‘username’, ‘admin’, array(), object(Validator))) in Validator.php line 485
at Validator->validateRequire(‘username’, ‘admin’, array(), object(Validator)) in Validator.php line 485
at Validator->validate(‘username’, ‘require’) in Validator.php line 425
at Validator->passes() in ValidatesWhenResolvedTrait.php line 24
at FormRequest->validate() in FoundationServiceProvider.php line 41 这是什么问题?是要引入哪个文件么?