質問編集履歴
1
viewの記述を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,4 +74,24 @@
|
|
74
74
|
|
75
75
|
$image->save();
|
76
76
|
|
77
|
+
|
78
|
+
|
79
|
+
viewの記述はこちらになります。
|
80
|
+
|
81
|
+
<form method="POST" action="{{action('TestController@upload')}}" enctype="multipart/form-data" >
|
82
|
+
|
83
|
+
<label for="image">画像ファイル:</label>
|
84
|
+
|
85
|
+
<input type="file" class="form-control" name="image">
|
86
|
+
|
87
|
+
<br>
|
88
|
+
|
89
|
+
<hr>
|
90
|
+
|
91
|
+
{{ csrf_field() }}
|
92
|
+
|
93
|
+
<button class="btn btn-success"> Upload </button>
|
94
|
+
|
95
|
+
</form>
|
96
|
+
|
77
97
|
```
|