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

后端 未结 20 2337
北海茫月
北海茫月 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:52

    Maybe there is an issue with your composer file. You could try:

    • composer install installs the vendor packages according to composer.lock (or creates composer.lock if not present),
    • composer update always regenerates composer.lock and installs the lastest versions of available packages based on composer.json

    • composer dump-autoload won’t download a thing. It just regenerates the list of all classes that need to be included in the project (autoload_classmap.php). Ideal for when you have a new class inside your project. Ideally, you execute composer dump-autoload -o , for a faster load of your webpages. The only reason it is not default, is because it takes a bit longer to generate (but is only slightly noticeable)

    source

提交回复
热议问题