I clicked on login, but the right side of register the errors shows up.
this is my view
<!-- REGISTER AREA LEFT SIDE -->
<div class="col-md-6">
<h3>Member Login</h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form role="form" method="POST" action="{{ URL::route('login') }}">
....
</div>
<!-- REGISTER AREA RIGHT SIDE -->
<div class="col-md-6">
<h3>Member Registration</h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form role="form" method="POST" action="{{ URL::route('register') }}">
....
</div>
and this is my controller return
return Redirect::back()
->withInput()
->withErrors($validation);
any way to rename the error with login_error
and register_error
? how to separate them into two variables, cause it conflict and shows both message on right side.