回答編集履歴
1
修正
test
CHANGED
@@ -6,9 +6,7 @@
|
|
6
6
|
|
7
7
|
- $target_path = public_path('uploads/');
|
8
8
|
|
9
|
-
+ $target_path = storage_path('uploads/');
|
10
|
-
|
11
|
-
$request->file('image_path')->storeAs(
|
9
|
+
$request->file('image_path')->storeAs('uploads', $fileName);
|
12
10
|
|
13
11
|
```
|
14
12
|
|