Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

radu-snappy's avatar

radu-snappy wrote a reply+100 XP

1mo ago

"View path not found" on Prod but works locally

Tl;Dr; if storage/framework/views doesn't exist and you didn't change the defaults, config('view.compiled') will return false and this error will happen.

This happened to me today because the way I deploy code to servers involves as "shared" folder with the .env file and storage directory structures, which I symlink into fresh git clones. But it was a fresh setup, so "storage" was empty. I was surprised that Laravel didn't just create the directory.