質問編集履歴
1
viewの記述を追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,4 +36,14 @@
|
|
36
36
|
$image->size = $request->size;
|
37
37
|
|
38
38
|
$image->save();
|
39
|
+
|
40
|
+
viewの記述はこちらになります。
|
41
|
+
<form method="POST" action="{{action('TestController@upload')}}" enctype="multipart/form-data" >
|
42
|
+
<label for="image">画像ファイル:</label>
|
43
|
+
<input type="file" class="form-control" name="image">
|
44
|
+
<br>
|
45
|
+
<hr>
|
46
|
+
{{ csrf_field() }}
|
47
|
+
<button class="btn btn-success"> Upload </button>
|
48
|
+
</form>
|
39
49
|
```
|