백엔드/laravel

라라벨 뷰 캐시 지우기

janggos 2023. 7. 12. 19:58
Clearing "View" Cache

 

Historically, I've never needed to clear the "cached" copy of Laravel views. However, lately I've been experiencing the need to clear my Laravel's view cache or else I continue to see the old and outdated version of my HTML templates. I imagine there's a tiny bug in the latest version of Laravel that's causing this which will get resolved soon, but in the meantime, I want to share with you a command you can run to fix the issue. Simply run:

php artisan view:clear

 

This will clear any cached views, and you can then rest assured that you'll see your newest HTML templates in the browser.

Thanks!
Brad