質問編集履歴
1
viewのコードを追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -100,6 +100,61 @@
|
|
100
100
|
```
|
101
101
|
$member->image = $request->image->storeAs('public/images', Auth::user()->id . '.jpg');
|
102
102
|
```
|
103
|
+
|
104
|
+
追記:
|
105
|
+
|
106
|
+
```
|
107
|
+
@extends('layouts.layout')
|
108
|
+
|
109
|
+
@section('content')
|
110
|
+
<header id="">
|
111
|
+
<h1>Laravel Project</h1>
|
112
|
+
</header>
|
113
|
+
<section id="serch">
|
114
|
+
<div class="head"><h2>参加者登録</h2></div>
|
115
|
+
</section>
|
116
|
+
<section id="list-table">
|
117
|
+
<form action="new" method="post" enctype="multipart/form-data">
|
118
|
+
@csrf
|
119
|
+
@method('PATCH')
|
120
|
+
<table class="list">
|
121
|
+
<div class="@if($errors->has('name')) has-error @endif">
|
122
|
+
<tr><th>名前<span>*入力必須</span>@if($errors->has('name'))<span class="text-danger">{{ $errors->first('name') }}</span> @endif</th><td><input type="text" class="form" name="name" value="{{old('name')}}"></td></tr>
|
123
|
+
</div>
|
124
|
+
<div class="@if($errors->has('email')) has-error @endif">
|
125
|
+
<tr><th>Email<span>*入力必須</span>@if($errors->has('email'))<span class="text-danger">{{ $errors->first('email') }}</span> @endif</th><td><input type="text" class="form" name="email" value="{{old('email')}}"></td></tr>
|
126
|
+
</div>
|
127
|
+
<div class="@if($errors->has('tel')) has-error @endif">
|
128
|
+
<tr><th>電話番号<span>*ハイフンなし</span>@if($errors->has('tel'))<span class="text-danger">{{ $errors->first('tel') }}</span> @endif</th><td><input type="text" class="form" name="tel" value="{{old('tel')}}"></td></tr>
|
129
|
+
</div>
|
130
|
+
<tr><th>出身(都道府県)</th><td><input type="text" class="form" id="addr" name="addr" value="{{old('addr')}}"></td></tr>
|
131
|
+
<tr><th>誕生日</th><td><input type="text" class="form" name="birth" placeholder="2000/12/12" value="{{old('birth')}}"></td></tr>
|
132
|
+
</table>
|
133
|
+
</section>
|
134
|
+
<section id="picture">
|
135
|
+
<div class="section-wrap">
|
136
|
+
<div class="pic-wrap">
|
137
|
+
<div class="pic-title">画像</div>
|
138
|
+
<div class="pic">
|
139
|
+
<input type="file" class="form" name="image">
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
<div class="com-wrap">
|
143
|
+
<div class="pic-title">メモ</div>
|
144
|
+
<div class="comment">
|
145
|
+
<textarea type="text" class="" name="comment" placeholder="" value="{{old('comment')}}"></textarea>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
</section>
|
150
|
+
<section id="back">
|
151
|
+
<input type="submit" class="btn create-btn" value="登録内容確認">
|
152
|
+
</form>
|
153
|
+
<a href="{{ action('MemberController@getIndex') }}" class="btn list-btn">一覧へ戻る</a>
|
154
|
+
</section>
|
155
|
+
@endsection
|
156
|
+
```
|
157
|
+
|
103
158
|
で指定するもnullとなります。
|
104
159
|
|
105
160
|
どなたかご教授頂けますと幸いです。
|