質問編集履歴
7
add.blade.phpの記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -114,6 +114,8 @@
|
|
114
114
|
|
115
115
|
```add.blade.php
|
116
116
|
|
117
|
+
add.blade.php
|
118
|
+
|
117
119
|
|
118
120
|
|
119
121
|
@extends('layouts.helloapp')
|
6
add.blade.phpの情報を変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,14 +116,84 @@
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
add.blade.php
|
120
|
-
|
121
|
-
|
122
|
-
|
123
119
|
@extends('layouts.helloapp')
|
124
120
|
|
125
121
|
|
126
122
|
|
123
|
+
@section('title', 'Add')
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
@section('menubar')
|
128
|
+
|
129
|
+
@parent
|
130
|
+
|
131
|
+
新規作成ページ
|
132
|
+
|
133
|
+
@endsection
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
@section('content')
|
138
|
+
|
139
|
+
<form action="/hello/add" method="post">
|
140
|
+
|
141
|
+
<table>
|
142
|
+
|
143
|
+
@csrf
|
144
|
+
|
145
|
+
<tr><th>name: </th><td><input type="text" name="name"></td></tr>
|
146
|
+
|
147
|
+
<tr><th>mail: </th><td><input type="text" name="mail"></td></tr>
|
148
|
+
|
149
|
+
<tr><th>age: </th><td><input type="text" name="age"></td></tr>
|
150
|
+
|
151
|
+
<tr><th></th><td><input type="submit" value="send"></td></tr>
|
152
|
+
|
153
|
+
</table>
|
154
|
+
|
155
|
+
</form>
|
156
|
+
|
157
|
+
@endsection
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
@section('footer')
|
162
|
+
|
163
|
+
copyright 2020 tuyano.
|
164
|
+
|
165
|
+
@endsection
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
@endsection
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
```
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
```index.blade.php
|
186
|
+
|
187
|
+
index.blade.php
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
@extends('layouts.helloapp')
|
194
|
+
|
195
|
+
|
196
|
+
|
127
197
|
@section('title','Index')
|
128
198
|
|
129
199
|
|
@@ -166,38 +236,6 @@
|
|
166
236
|
|
167
237
|
|
168
238
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
{{-- @include('components.message',['msg_title'=>'OK',
|
174
|
-
|
175
|
-
'msg_content'=>'サブビューです。']) --}}
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
{{-- @component('components.message')
|
180
|
-
|
181
|
-
@slot('msg_title')
|
182
|
-
|
183
|
-
CAUTION!
|
184
|
-
|
185
|
-
@endslot
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
@slot('msg_content')
|
190
|
-
|
191
|
-
これはメッセージの表示です。
|
192
|
-
|
193
|
-
@endslot
|
194
|
-
|
195
|
-
@endcomponent --}}
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
239
|
@section('footer')
|
202
240
|
|
203
241
|
copyright 2020 tuyano.
|
@@ -206,74 +244,6 @@
|
|
206
244
|
|
207
245
|
|
208
246
|
|
209
|
-
|
210
|
-
|
211
|
-
```
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
```index.blade.php
|
216
|
-
|
217
|
-
index.blade.php
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
@extends('layouts.helloapp')
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
@section('title','Index')
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
@section('menubar')
|
232
|
-
|
233
|
-
@parent
|
234
|
-
|
235
|
-
インデックスページ
|
236
|
-
|
237
|
-
@endsection
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
@section('content')
|
242
|
-
|
243
|
-
<table>
|
244
|
-
|
245
|
-
<tr><th>Name</th><th>Mail</th><th>Age</th></tr>
|
246
|
-
|
247
|
-
@foreach ($items as $item)
|
248
|
-
|
249
|
-
<tr>
|
250
|
-
|
251
|
-
<td>{{$item->name}}</td>
|
252
|
-
|
253
|
-
<td>{{$item->mail}}</td>
|
254
|
-
|
255
|
-
<td>{{$item->age}}</td>
|
256
|
-
|
257
|
-
</tr>
|
258
|
-
|
259
|
-
@endforeach
|
260
|
-
|
261
|
-
</table>
|
262
|
-
|
263
|
-
</form>
|
264
|
-
|
265
|
-
@endsection
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
@section('footer')
|
270
|
-
|
271
|
-
copyright 2020 tuyano.
|
272
|
-
|
273
|
-
@endsection
|
274
|
-
|
275
|
-
|
276
|
-
|
277
247
|
```
|
278
248
|
|
279
249
|
|
5
index.blade.phpの情報を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -212,6 +212,76 @@
|
|
212
212
|
|
213
213
|
|
214
214
|
|
215
|
+
```index.blade.php
|
216
|
+
|
217
|
+
index.blade.php
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
@extends('layouts.helloapp')
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
@section('title','Index')
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
@section('menubar')
|
232
|
+
|
233
|
+
@parent
|
234
|
+
|
235
|
+
インデックスページ
|
236
|
+
|
237
|
+
@endsection
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
@section('content')
|
242
|
+
|
243
|
+
<table>
|
244
|
+
|
245
|
+
<tr><th>Name</th><th>Mail</th><th>Age</th></tr>
|
246
|
+
|
247
|
+
@foreach ($items as $item)
|
248
|
+
|
249
|
+
<tr>
|
250
|
+
|
251
|
+
<td>{{$item->name}}</td>
|
252
|
+
|
253
|
+
<td>{{$item->mail}}</td>
|
254
|
+
|
255
|
+
<td>{{$item->age}}</td>
|
256
|
+
|
257
|
+
</tr>
|
258
|
+
|
259
|
+
@endforeach
|
260
|
+
|
261
|
+
</table>
|
262
|
+
|
263
|
+
</form>
|
264
|
+
|
265
|
+
@endsection
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
@section('footer')
|
270
|
+
|
271
|
+
copyright 2020 tuyano.
|
272
|
+
|
273
|
+
@endsection
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
215
285
|
```web.php
|
216
286
|
|
217
287
|
web.php
|
4
新しくページを開き直したりもしましたがダメでした。
test
CHANGED
File without changes
|
test
CHANGED
@@ -248,6 +248,10 @@
|
|
248
248
|
|
249
249
|
web.phpが誤っているのではないかと思ったのですが自分が見たかぎり
|
250
250
|
|
251
|
+
問題なさそうでした・・新しくページを開き直したりもしましたがダメでした。
|
252
|
+
|
253
|
+
|
254
|
+
|
251
|
-
|
255
|
+
初心者で質問の仕方が下手で申し訳ありませんが、
|
252
256
|
|
253
257
|
どなたかご回答いただけたら幸いです。よろしくお願い致します。
|
3
index.blade.php→add.blade.php
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
|
119
|
+
add.blade.php
|
120
120
|
|
121
121
|
|
122
122
|
|
2
index.blade.php→add.blade.php
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
```
|
115
|
+
```add.blade.php
|
116
116
|
|
117
117
|
|
118
118
|
|
1
、、
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,8 +108,18 @@
|
|
108
108
|
|
109
109
|
```
|
110
110
|
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
111
115
|
```index.blade.php
|
112
116
|
|
117
|
+
|
118
|
+
|
119
|
+
index.blade.php
|
120
|
+
|
121
|
+
|
122
|
+
|
113
123
|
@extends('layouts.helloapp')
|
114
124
|
|
115
125
|
|
@@ -200,8 +210,16 @@
|
|
200
210
|
|
201
211
|
```
|
202
212
|
|
213
|
+
|
214
|
+
|
203
215
|
```web.php
|
204
216
|
|
217
|
+
web.php
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
205
223
|
<?php
|
206
224
|
|
207
225
|
use Illuminate\Support\Facades\Route;
|