回答編集履歴

1

修正

2021/05/18 18:14

投稿

phper.k
phper.k

スコア3923

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($target_path, $fileName);
9
+ $request->file('image_path')->storeAs('uploads', $fileName);
12
10
 
13
11
  ```
14
12