Help us understand the problem. What is going on with this article?

lumenでviewにbladeを使おうとおもったらlumen.logのパーミッションエラー。

More than 1 year has passed since last update.

lumenでviewにbladeを使おうとおもったらでたエラー。

PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "myapp/storage/logs/lumen.log" could not be opened: failed to open stream: Permission denied

解決した方法

https://stackoverflow.com/questions/23540083/file-put-contentsmeta-services-json-failed-to-open-stream-permission-denied

php artisan cache:clear 
chmod -R 777 storage/
composer dump-autoload

php artisan cache:clear キャッシュ削除する  
chmod -R 777 storage/ パーミッション変更する
composer dump-autoload オートロードを再実行する

宿題

オートロードが何をしてるか調べる。

yowayowa
2018年 高卒30代未経験からプログラマーになる。 主にRailsで開発に従事
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away