adding logic to show the previous submitted name and email when registration fails validation

This commit is contained in:
Cody Seibert 2024-06-07 21:19:09 -04:00
parent 45017efe00
commit 0a08f9d3f8

View File

@ -23,8 +23,10 @@
label="{{ __('input.password.again') }}" />
</div>
@else
<x-forms.input required type="text" name="name" label="{{ __('input.name') }}" />
<x-forms.input required type="email" name="email" label="{{ __('input.email') }}" />
<x-forms.input required type="text" name="name" value="{{ old('name') }}"
label="{{ __('input.name') }}" />
<x-forms.input required type="email" name="email" value="{{ old('email') }}"
label="{{ __('input.email') }}" />
<div class="flex gap-2">
<x-forms.input required type="password" name="password"
label="{{ __('input.password') }}" />