質問編集履歴

1

不要なコードの削除

2022/12/13 12:07

投稿

takigawa777
takigawa777

スコア21

test CHANGED
File without changes
test CHANGED
@@ -297,73 +297,6 @@
297
297
  @endsection
298
298
  ```
299
299
 
300
- ```edit.blade.php(商品編集画面ビュー)
301
- @extends('layouts.top')
302
-
303
- @section('title', $title)
304
-
305
- @section('content')
306
- <h1>{{ $title }}</h1>
307
- <form method="POST"
308
- action="{{ action('ItemsController@store') }}"
309
- enctype="multipart/form-data">
310
- @csrf
311
- <div>
312
- <label>
313
- 商品名:
314
- <input type="text" name="name">
315
- </label>
316
- </div>
317
- <div>
318
- <label>
319
- 商品説明:
320
- <input type="text" name="description">
321
- </label>
322
- </div>
323
- <div>
324
- <label>
325
- 価格:
326
- <input type="text" name="price">
327
- </label>
328
- </div>
329
- <div>
330
- <label>
331
- カテゴリー:
332
- </label>
333
- </div>
334
- <input type="submit" value="出品">
335
- </form>
336
- @endsection
337
- ```
338
-
339
- ```edit_image.blade.php(商品画像編集ビュー)
340
- @extends('layouts.top')
341
-
342
- @section('content')
343
- <h1>{{ $title }}</h1>
344
- <h2>現在の画像</h2>
345
- @if($items->image !== '')
346
- <img src="{{ \Storage::url($items->image) }}">
347
- @else
348
- 画像はありません。
349
- @endif
350
- <form
351
- method="POST"
352
- action="{{ route('items.update_image', $items) }}"
353
- enctype="multipart/form-data"
354
- >
355
- @csrf
356
- @method('patch')
357
- <div>
358
- <label>
359
- 画像を選択:
360
- <input type="file" name="image">
361
- </label>
362
- </div>
363
- <input type="submit" value="更新">
364
- </form>
365
- @endsection
366
- ```
367
300
  ### 試したこと
368
301
 
369
302
  ルーティングのチェック、コードの名称のチェック