I realize now this is not a bug, but a feature not implemented. To re-populate the form modify postLogin()
in AuthController.php
to flash the input:
public function postLogin(LoginRequest $request)
{
if ($this->auth->attempt($request->only('email', 'password')))
{
return redirect('/');
}
return redirect('/auth/login')
#Flash input
->withInput(Input::except('password'))
->withErrors([
'email' => 'These credentials do not match our records.',
]);
}
and use the old data in the view to set the value of the input:
{{ Form::email('email', old('email'), ['class' => 'form-control']) }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community