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

klickers's avatar

php artisan view:clear not working

I'm working on a Laravel project (version 7.0) with PHP version 7.4.1. (OS = Windows 10)

I have a problem that's been bugging me since I started a Laravel project. Whenever I run php artisan view:clear and reload the page to see my updates, the page doesn't always update. Sometimes it does, sometimes I have to wait a few minutes before reloading and seeing if it changes. Development is becoming increasingly frustrating due to all this "down time". From my knowledge, the views are supposed to be updated right away...any ideas on what the problem is?

0 likes
9 replies
MichalOravec's avatar

Refresh your browser with CTRL + F5, it could help to you. It's like a hard refresh.

Snapey's avatar

view clear

  • should not be necessary
  • should be immediate.

to check it is having an effect, examine the storage/framework/views folder before and after the command. All the command does is delete all the files in that folder

klickers's avatar

I've tried hard refresh, but without success. view:clear does clean the entire storage/framework/views folder, but it still doesn't work. I do notice that if I delete what's under the session folder, though, everything's cleared and the newest version loads. Is there a shortcut for clearing the session folder?

Snapey's avatar

Is it the design that is not updating , or the data ?

siangboon's avatar

if you are facing issue on CSS or image rendering, perhaps open another new inPrivate/inCognito session with different profile may help...

klickers's avatar

It's the blade that isn't updating. I have disabled cache on my browser, so CSS and JS files are not a problem.

Please or to participate in this conversation.