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

ApexLeo's avatar

Laravel view cache issue

Hello

I am facing an issue with caching views. I have run these commands

php artisan optimize
php artisan view:cache

now, what I expect is I have cached the view. now if I go to the website it should use the cached view. it does not use the cached views it renders from the actual .blade.php file.

how I am supposed to cache the views file so it actually renders from the cache, not actual views.

kindly help, thanks in advance

0 likes
2 replies
ApexLeo's avatar

@sr57 thank you for your reply i have gone through the article and it looks good. I will still keep looking for a better/managed way of doing something like this. if i didn't find anything i will go with this approach and mark your reply as the best answer

Please or to participate in this conversation.