回答編集履歴
3
既存ファイルのパーミッション変更について追記
test
CHANGED
@@ -11,3 +11,9 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
[ファイルURL](https://readouble.com/laravel/5.8/ja/filesystem.html#file-urls)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
(追記)
|
18
|
+
|
19
|
+
`noimage.png`のパーミッションを変更するとどうでしょうか。 `chmod 664 public/storage/noimage.png` とかです。
|
2
回答を変更しました(asset() -> Strage::url())
test
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
画像表示部分で`a
|
1
|
+
画像表示部分で`Storage::url()`を使うとどうでしょうか。
|
2
2
|
|
3
3
|
|
4
4
|
|
5
5
|
```php
|
6
6
|
|
7
|
-
<img src="{{
|
7
|
+
<img src="{{ Storage::url('noimage.png') }}" ... >
|
8
8
|
|
9
9
|
```
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
[
|
13
|
+
[ファイルURL](https://readouble.com/laravel/5.8/ja/filesystem.html#file-urls)
|
1
コードを追記
test
CHANGED
@@ -2,4 +2,12 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
```php
|
6
|
+
|
7
|
+
<img src="{{ asset('storage/noimage.png') }}" ... >
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
[パブリックディスク](https://readouble.com/laravel/6.x/ja/filesystem.html#the-public-disk)
|