Are you using Laravel 5? Have you run composer dump-autoload -o after?
Maybe try composer update too.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am getting this error again and again. I have already set /var/www/laravel/storage to -R 777.
production.ERROR: exception 'ErrorException' with message 'file_put_contents(/var/www/laravel/storage/framework/cache/4f/64/4f64b5b0caaa488e20ab4995e): failed to open stream: No such file or directory' in /var/www/booking/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:81
Please or to participate in this conversation.