ErrorException in Filesystem.php

after update do

chmod -R gu+w storage

chmod -R guo+w storage

php artisan cache:clear

If you use Laravel 5.2.0 you've probably ignored the storage folder in the .gitignore file. The thing is that when you run composer install on your server not all the files from the storage folder are created, you should check those !

In my case my storage folder contained only the logs folder without app and framework folders. You need to create those manually so you should have this structure at the end:

storage
  - app
  - framework
    - cache 
    - sessions
    - views
  - logs

Don't forget to make the storage folder writable !


Had to do with the hosting. My cloud service did not support exclusive locks. I exchanged

return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);

to

return file_put_contents($path, $contents, $lock ? LOCK_SH : 0);

on line 74 of Filesystem.php