Flash old input after failed login attempt
MODIFY
app/Http/Controllers/LoginController.php
app/Http/Controllers/LoginController.php
@@ -17,6 +17,8 @@ class LoginController extends Controller {
])) {
return redirect()->route('dashboard');
} else {
+ $request->flash();
+
return redirect()
->route('login')
->with([

MODIFY
resources/views/login.blade.php
resources/views/login.blade.php
{{ csrf_field() }}
<div class="input">
<label>E-mail</label>
- <input type="email" name="email" />
+ <input type="email" name="email" value="{{ old('email') }}" />
</div>
<div class="input">
<label>Password</label>

Flash old input after failed login attempt