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