server-side-validation

Laravel 5.2 Validation Error not appearing in blade

假如想象 提交于 2019-11-26 03:18:58
问题 I want to show validation Error in View page while user giving wrong input. It\'s Ok that it\'s not saving anything in database while a user giving wrong input. But there is no error message in user view page. If anyone find the error, please help me out. Here is the controller: public function saveUser(Request $request){ $this->validate($request,[ \'name\' => \'required|max:120\', \'email\' => \'required|email|unique:users\', \'phone\' => \'required|min:11|numeric\', \'course_id\'=>\