質問編集履歴

1

コードを追加しました。

2022/10/10 05:39

投稿

kpby2751
kpby2751

スコア19

test CHANGED
File without changes
test CHANGED
@@ -125,5 +125,79 @@
125
125
  return redirect(RouteServiceProvider::HOME);
126
126
  }
127
127
  }
128
-
128
+ ```
129
+
129
-
130
+ ```register.blade.php
131
+ <x-guest-layout>
132
+ <x-auth-card>
133
+ <x-slot name="logo">
134
+ <a href="/">
135
+ <x-application-logo class="w-20 h-20 fill-current text-gray-500" />
136
+ </a>
137
+ </x-slot>
138
+
139
+ <form method="POST" action="{{ route('register') }}"enctype="multipart/form-data">
140
+ @csrf
141
+
142
+ <!-- Name -->
143
+ <div>
144
+ <x-input-label for="name" :value="__('Name')" />
145
+
146
+ <x-text-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus />
147
+
148
+ <x-input-error :messages="$errors->get('name')" class="mt-2" />
149
+ </div>
150
+
151
+ <!-- Email Address -->
152
+ <div class="mt-4">
153
+ <x-input-label for="email" :value="__('Email')" />
154
+
155
+ <x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required />
156
+
157
+ <x-input-error :messages="$errors->get('email')" class="mt-2" />
158
+ </div>
159
+
160
+ <!-- Avatar -->
161
+ <div class="mt-4">
162
+ <x-input-label for="avatar" :value="__('プロフィール画像(任意・1MBまで)')" />
163
+
164
+ <x-text-input id="avatar" class="block mt-1 w-full rounded-none" type="file" name="avatar" :value="old('avatar')" />
165
+ </div>
166
+
167
+ <!-- Password -->
168
+ <div class="mt-4">
169
+ <x-input-label for="password" :value="__('Password')" />
170
+
171
+ <x-text-input id="password" class="block mt-1 w-full"
172
+ type="password"
173
+ name="password"
174
+ required autocomplete="new-password" />
175
+
176
+ <x-input-error :messages="$errors->get('password')" class="mt-2" />
177
+ </div>
178
+
179
+ <!-- Confirm Password -->
180
+ <div class="mt-4">
181
+ <x-input-label for="password_confirmation" :value="__('Confirm Password')" />
182
+
183
+ <x-text-input id="password_confirmation" class="block mt-1 w-full"
184
+ type="password"
185
+ name="password_confirmation" required />
186
+
187
+ <x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" />
188
+ </div>
189
+
190
+ <div class="flex items-center justify-end mt-4">
191
+ <a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('login') }}">
192
+ {{ __('Already registered?') }}
193
+ </a>
194
+
195
+ <x-primary-button class="ml-4">
196
+ {{ __('Register') }}
197
+ </x-primary-button>
198
+ </div>
199
+ </form>
200
+ </x-auth-card>
201
+ </x-guest-layout>
202
+
203
+ ```