質問編集履歴

2

view画面の追加

2020/06/18 09:56

投稿

ORyohei
ORyohei

スコア18

test CHANGED
File without changes
test CHANGED
@@ -326,11 +326,7 @@
326
326
 
327
327
 
328
328
 
329
- ### 該当のソースコード
329
+
330
-
331
- ```ここに言語名を入力
332
-
333
- ソースコード
334
330
 
335
331
 
336
332
 
@@ -580,7 +576,7 @@
580
576
 
581
577
  ```
582
578
 
583
-
579
+ shop_register.blade.php
584
580
 
585
581
 
586
582
 

1

view の追加

2020/06/18 09:56

投稿

ORyohei
ORyohei

スコア18

test CHANGED
File without changes
test CHANGED
@@ -334,247 +334,257 @@
334
334
 
335
335
 
336
336
 
337
- <?php
338
-
339
-
340
-
341
- return [
342
-
343
-
344
-
345
- /*
346
-
347
- |--------------------------------------------------------------------------
348
-
349
- | Authentication Defaults
350
-
351
- |--------------------------------------------------------------------------
352
-
353
- |
354
-
355
- | This option controls the default authentication "guard" and password
356
-
357
- | reset options for your application. You may change these defaults
358
-
359
- | as required, but they're a perfect start for most applications.
360
-
361
- |
362
-
363
- */
364
-
365
-
366
-
367
- 'defaults' => [
368
-
369
- 'guard' => 'user', // webからuserに変更
370
-
371
- 'passwords' => 'users',
372
-
373
- ],
374
-
375
-
376
-
377
- /*
378
-
379
- |--------------------------------------------------------------------------
380
-
381
- | Authentication Guards
382
-
383
- |--------------------------------------------------------------------------
384
-
385
- |
386
-
387
- | Next, you may define every authentication guard for your application.
388
-
389
- | Of course, a great default configuration has been defined for you
390
-
391
- | here which uses session storage and the Eloquent user provider.
392
-
393
- |
394
-
395
- | All authentication drivers have a user provider. This defines how the
396
-
397
- | users are actually retrieved out of your database or other storage
398
-
399
- | mechanisms used by this application to persist your user's data.
400
-
401
- |
402
-
403
- | Supported: "session", "token"
404
-
405
- |
406
-
407
- */
408
-
409
-
410
-
411
- 'guards' => [
412
-
413
- 'web' => [
414
-
415
- 'driver' => 'session',
416
-
417
- 'provider' => 'users',
418
-
419
- ],
420
-
421
- 'api' => [
422
-
423
- 'driver' => 'token',
424
-
425
- 'provider' => 'users',
426
-
427
- ],
428
-
429
- 'user' => [
430
-
431
- 'driver' => 'session',
432
-
433
- 'provider' => 'users',
434
-
435
- ],
436
-
437
- 'shop' => [
438
-
439
- 'driver' => 'session',
440
-
441
- 'provider' => 'shops',
442
-
443
- ],
444
-
445
- ],
446
-
447
-
448
-
449
- /*
450
-
451
- |--------------------------------------------------------------------------
452
-
453
- | User Providers
454
-
455
- |--------------------------------------------------------------------------
456
-
457
- |
458
-
459
- | All authentication drivers have a user provider. This defines how the
460
-
461
- | users are actually retrieved out of your database or other storage
462
-
463
- | mechanisms used by this application to persist your user's data.
464
-
465
- |
466
-
467
- | If you have multiple user tables or models you may configure multiple
468
-
469
- | sources which represent each model / table. These sources may then
470
-
471
- | be assigned to any extra authentication guards you have defined.
472
-
473
- |
474
-
475
- | Supported: "database", "eloquent"
476
-
477
- |
478
-
479
- */
480
-
481
-
482
-
483
- 'providers' => [
484
-
485
- 'users' => [
486
-
487
- 'driver' => 'eloquent',
488
-
489
- 'model' => App\User::class,
490
-
491
- ],
492
-
493
- 'shops' => [
494
-
495
- 'driver' => 'eloquent',
496
-
497
- 'model' => App\Shop::class,
498
-
499
- ],
500
-
501
-
502
-
503
- // 'users' => [
504
-
505
- // 'driver' => 'database',
506
-
507
- // 'table' => 'users',
508
-
509
- // ],
510
-
511
- ],
512
-
513
-
514
-
515
- /*
516
-
517
- |--------------------------------------------------------------------------
518
-
519
- | Resetting Passwords
520
-
521
- |--------------------------------------------------------------------------
522
-
523
- |
524
-
525
- | You may specify multiple password reset configurations if you have more
526
-
527
- | than one user table or model in the application and you want to have
528
-
529
- | separate password reset settings based on the specific user types.
530
-
531
- |
532
-
533
- | The expire time is the number of minutes that the reset token should be
534
-
535
- | considered valid. This security feature keeps tokens short-lived so
536
-
537
- | they have less time to be guessed. You may change this as needed.
538
-
539
- |
540
-
541
- */
542
-
543
-
544
-
545
- 'passwords' => [
546
-
547
- 'users' => [
548
-
549
- 'provider' => 'users',
550
-
551
- 'table' => 'password_resets',
552
-
553
- 'expire' => 60,
554
-
555
- ],
556
-
557
- 'shops' => [
558
-
559
- 'provider' => 'shops',
560
-
561
- 'table' => 'password_resets',
562
-
563
- 'expire' => 60,
564
-
565
- ],
566
-
567
- ],
568
-
569
-
570
-
571
- ];
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
572
350
 
573
351
  ```
574
352
 
575
-
576
-
577
- auth.php
353
+ @extends('layouts.app')
354
+
355
+
356
+
357
+ @section('title', '新規登録')
358
+
359
+
360
+
361
+ @include('nav')
362
+
363
+
364
+
365
+ @section('content')
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+ <section class="l-inner-wrapper__m p-login-bg" id="Salon">
376
+
377
+ <div class="l-inner l-inner__s p-login-color u-padding">
378
+
379
+ <div class="c-inner__title">アカウントを作成する</div>
380
+
381
+ <div class="l-inner__body">
382
+
383
+ <div class="p-login">
384
+
385
+ <form method="POST" action="{{ route('shop_auth.register') }}">
386
+
387
+ @csrf
388
+
389
+ <ul class="">
390
+
391
+
392
+
393
+ <li class="p-form__item">
394
+
395
+ @error('shop_name')
396
+
397
+ <span class="invalid-feedback" role="alert">
398
+
399
+ <strong>{{ $message }}</strong>
400
+
401
+ </span>
402
+
403
+ @enderror
404
+
405
+ <input id="shop_name" type="shop_name" class="c-text @error('shop_name') is-invalid @enderror" name="shop_name" value="{{ old('shop_name') }}" required autocomplete="shop_name" placeholder="コンビニ名" >
406
+
407
+ </li>
408
+
409
+
410
+
411
+ <li class="p-form__item">
412
+
413
+ @error('branch_name')
414
+
415
+ <span class="invalid-feedback" role="alert">
416
+
417
+ <strong>{{ $message }}</strong>
418
+
419
+ </span>
420
+
421
+ @enderror
422
+
423
+ <input id="branch_name"name="branch_name"type="text" placeholder="支店名" class="c-text" required autocomplete="branch_name" value="{{ old('branch_name') }}" >
424
+
425
+ </li>
426
+
427
+
428
+
429
+
430
+
431
+ <li class="p-form__item">
432
+
433
+ @error('prefecture')
434
+
435
+ <span class="invalid-feedback" role="alert">
436
+
437
+ <strong>{{ $message }}</strong>
438
+
439
+ </span>
440
+
441
+ @enderror
442
+
443
+ <li class="p-form__item c-text">
444
+
445
+ <select name="prefecture" id="prefecture">
446
+
447
+ <option value="">住所:都道府県</option>
448
+
449
+ <option value="東京">東京</option>
450
+
451
+ <option value="神奈川">神奈川</option>
452
+
453
+ <option value="千葉">千葉</option>
454
+
455
+
456
+
457
+ </select>
458
+
459
+ </li>
460
+
461
+ </li>
462
+
463
+
464
+
465
+
466
+
467
+ <li class="p-form__item">
468
+
469
+ @error('adrress')
470
+
471
+ <span class="invalid-feedback" role="alert">
472
+
473
+ <strong>{{ $message }}</strong>
474
+
475
+ </span>
476
+
477
+ @enderror
478
+
479
+
480
+
481
+ <input id="address" type="address" class="c-text @error('address') is-invalid @enderror" name="address" value="{{ old('address') }}" required autocomplete="address" placeholder="住所:市町村番地" >
482
+
483
+ </li>
484
+
485
+
486
+
487
+ <li class="p-form__item">
488
+
489
+ @error('email')
490
+
491
+ <span class="invalid-feedback" role="alert">
492
+
493
+ <strong>{{ $message }}</strong>
494
+
495
+ </span>
496
+
497
+ @enderror
498
+
499
+ <input id="email" type="email" class="c-text @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" placeholder="メールアドレス" >
500
+
501
+ </li>
502
+
503
+
504
+
505
+ <li class="p-form__item">
506
+
507
+ @error('password')
508
+
509
+ <span class="invalid-feedback" role="alert">
510
+
511
+ <strong>{{ $message }}</strong>
512
+
513
+ </span>
514
+
515
+ @enderror
516
+
517
+
518
+
519
+ <input id="password" type="password" class="c-text @error('password') is-invalid @enderror" name="password" required autocomplete="new-password" placeholder="パスワード">
520
+
521
+ <label for="" class="">
522
+
523
+ ※半角英数字組み合わせで8文字以上
524
+
525
+ </label>
526
+
527
+ </li>
528
+
529
+
530
+
531
+ <li class="p-form__item">
532
+
533
+
534
+
535
+
536
+
537
+ <input id="password-confirm" type="password" class="c-text" name="password_confirmation" required autocomplete="new-password" placeholder="パスワード確認" >
538
+
539
+
540
+
541
+
542
+
543
+ </li>
544
+
545
+
546
+
547
+
548
+
549
+ </ul>
550
+
551
+
552
+
553
+ <div class="submit-btn">
554
+
555
+ <input type="submit" value="アカウントを作成する" class="p-submit__btn c-btn">
556
+
557
+ </div>
558
+
559
+
560
+
561
+
562
+
563
+ </form>
564
+
565
+ </div>
566
+
567
+ </div>
568
+
569
+ </div>
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+ </section>
578
+
579
+
580
+
581
+ ```
582
+
583
+
584
+
585
+
586
+
587
+
578
588
 
579
589
 
580
590