0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravelの`storage:link`のシンボリックリンクがうまくできなかった話

Posted at

ご覧いただき,ありがとうございます。
Laravelのstorage:linkを張ったのに画像が表示されない問題でつまずいたので,その解決方法を共有します。
いつも通り,シンボリックリンクを張ったのですが,画像が表示されませんでした。
答えは単純です。
storageディレクトリの権限が777になっていなかったのです。
ということで,以下のコマンドを実行して権限を変更しましょう。

chmod -R 777 storage/app/public

権限設定は難しいですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?