Thursday, January 6, 2022

[FIXED] Laravel 5 Clear Views Cache

Issue

I notice that Laravel cache views are stored in ~/storage/framework/views. Over time, they get to eat up my space. How do I delete them? Is there any command that could? I tried php artisan cache:clear, but it is not clearing the views cache. With that, I have to manually delete the files in the said folder.

Also, how do I disable the views caching?


Solution

There is now a php artisan view:clear command for this task since Laravel 5.1



Answered By - DilipGurung

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.