laravel 控制器给页面返回错误提示 控制器中 return back()->withErrors('账户/密码错误'); 视图中 @foreach($errors->all() as $error) //todo @endforeach witherrors中也可以传递数组