質問編集履歴
1
welcome.blade.php, register.blade.phpを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -172,13 +172,147 @@
|
|
172
172
|
|
173
173
|
```php
|
174
174
|
|
175
|
+
@extends('layouts.app')
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
@section('content')
|
180
|
+
|
181
|
+
<div class="text-center">
|
182
|
+
|
183
|
+
<h1>会員登録</h1>
|
184
|
+
|
185
|
+
</div>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<div class="row">
|
190
|
+
|
191
|
+
<div class="col-sm-6 offset-sm-3">
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
{!! Form::open(['route' => 'signup.post']) !!}
|
196
|
+
|
175
|
-
<div class="form-group">
|
197
|
+
<div class="form-group">
|
198
|
+
|
176
|
-
|
199
|
+
{!! Form::label('name', '氏名') !!}
|
200
|
+
|
201
|
+
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<div class="form-group">
|
208
|
+
|
209
|
+
{!! Form::label('email', 'メールアドレス') !!}
|
210
|
+
|
211
|
+
{!! Form::email('email', old('email'), ['class' => 'form-control']) !!}
|
212
|
+
|
213
|
+
</div>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<div class="form-group">
|
218
|
+
|
177
|
-
{!! Form::label('icon', 'アイコン') !!}
|
219
|
+
{!! Form::label('icon', 'アイコン') !!}
|
178
|
-
|
220
|
+
|
179
|
-
{!! Form::file('icon') !!}
|
221
|
+
{!! Form::file('icon') !!}
|
180
|
-
|
222
|
+
|
181
|
-
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
<div class="form-group">
|
228
|
+
|
229
|
+
{!! Form::label('password', 'パスワード') !!}
|
230
|
+
|
231
|
+
{!! Form::password('password', ['class' => 'form-control']) !!}
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<div class="form-group">
|
238
|
+
|
239
|
+
{!! Form::label('password_confirmation', 'パスワード(確認)') !!}
|
240
|
+
|
241
|
+
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
|
242
|
+
|
243
|
+
</div>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
{!! Form::submit('登録', ['class' => 'btn btn-primary btn-block']) !!}
|
248
|
+
|
249
|
+
{!! Form::close() !!}
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
@endsection
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
```
|
260
|
+
|
261
|
+
```php
|
262
|
+
|
263
|
+
@extends('layouts.app')
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
@section('content')
|
268
|
+
|
269
|
+
@if (Auth::check())
|
270
|
+
|
271
|
+
<div class="row">
|
272
|
+
|
273
|
+
<aside class="col-sm-4">
|
274
|
+
|
275
|
+
<div class="card">
|
276
|
+
|
277
|
+
<div class="card-header">
|
278
|
+
|
279
|
+
<h3 class="card-title">{{ Auth::user()->name }}</h3>
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
<div class="card-body">
|
284
|
+
|
285
|
+
<img src="{{Auth::user()->icon}}" width="150" height="150">
|
286
|
+
|
287
|
+
</div>
|
288
|
+
|
289
|
+
</div>
|
290
|
+
|
291
|
+
</aside>
|
292
|
+
|
293
|
+
</div>
|
294
|
+
|
295
|
+
@else
|
296
|
+
|
297
|
+
<div class="center-jumbotron">
|
298
|
+
|
299
|
+
<div class="text-center">
|
300
|
+
|
301
|
+
<h1>**************</h1>
|
302
|
+
|
303
|
+
<h3>**************</h3>
|
304
|
+
|
305
|
+
<p>{!! link_to_route('signup.get', '新規登録はこちら', [], ['class' => 'btn btn-lg btn-primary']) !!}</p>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</div>
|
312
|
+
|
313
|
+
@endif
|
314
|
+
|
315
|
+
@endsection
|
182
316
|
|
183
317
|
```
|
184
318
|
|