Hello,
I have this code in a blade template:
Email:<br>
<input type="email" name="email" value="{{ old('email') }}"><br/>
@if ($errors->first('email'))
<li>
{{ $errors->first('email') }}
</li>
@endif
error display works fine, but not the 'old' things.
The controler is very simple, do I need to do something special to enable old values:
public function store()
{
# Validate
$this->validate(request(), [
'username' => 'required|min:2',
'email' => 'required|email',
'password' => 'required',
]);
# Create
$user = User::create(request(['username', 'email', 'password']));
# Authenticate
//auth()->login($user);
# redirect
return redirect()->home();
}