From f4e16aa451b36bed8aa0e5d4886011d51bed3463 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Sun, 26 May 2024 23:01:51 -0500 Subject: [PATCH] Show errors on forms. Additional work on confirm email screen. --- resources/views/auth/verify-email.blade.php | 2 +- resources/views/components/auth/form-field.blade.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php index 59fb0ad..fae535e 100644 --- a/resources/views/auth/verify-email.blade.php +++ b/resources/views/auth/verify-email.blade.php @@ -18,7 +18,7 @@ If you didn't receive the email, we will gladly send you another. @if(session('status') == 'verification-link-sent') -
+
A new verification link has been sent to the email address you provided during registration.
@endif diff --git a/resources/views/components/auth/form-field.blade.php b/resources/views/components/auth/form-field.blade.php index ec42541..b880bec 100644 --- a/resources/views/components/auth/form-field.blade.php +++ b/resources/views/components/auth/form-field.blade.php @@ -1,7 +1,7 @@ @props([ 'name', 'type', - 'label' => 'text' + 'label' => 'text', ]) @php $labelClasses = "block text-sm font-medium leading-6 text-gray-900"; @@ -10,7 +10,8 @@ 'id' => $name, 'name' => $name, 'type' => $type, - 'class' => $inputClasses + 'class' => $inputClasses, + 'value' => old($name) ]; @endphp
@@ -18,4 +19,7 @@
merge($inputAttributes)}}>
+ @error($name) +

{{ $message }}

+ @enderror