Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory

后端 未结 20 2386
北海茫月
北海茫月 2020-12-04 17:26

I have a project on Laravel 5 and I work with it at the office and at home too. It works fine, but recently at home it stopped working. Laravel show me two ErrorException

20条回答
  •  暖寄归人
    2020-12-04 17:56

    The reason for this problem is the cache files in localhost. According to that I've tried several things as follows to clear the cache on my project, but every time I've failed.

    • Tried to clear cahe commands by changing web.php file (with artisan codes)
    • Tried to clear cache by connecting SSH (via PUTTY)
    • Tried to host my project in Sub domain within create a new Public directory

    So I've found a solution for this problem after each and every above steps failed and it worked for me perfectly. I deleted the cache.php file in host_route/bootstrap/cache directory.

    I think this answer will help your problem.

提交回复
热议问题