Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Project Setup Templates and Layouts

Stop Laravel from Retaining Sessions

I'm using a CentOS server instead of the Laravel Homestead environment, because it mimics the first project I want to try. My instance of Laravel is retaining views, so that I am unable to refresh a view after making an edit, unless I go into the 'Laravel\app\storage\views' directory and delete the current cached views. Is there a way to temporarily turn off view caching while I'm making changes, so that I can refresh the browser to see my changes?

1 Answer

I figured this out. The problem was with the server I made to host the site. The time was set ahead of the time on my local computer (where I'm editing the blade files). Larevel will only recompile the files in the /app/storage/views folder when the time on the views files is earlier than the time on the PHP blade files for the layout.

Sebastian Jung
Sebastian Jung
6,882 Points

Had the same issue von my ubuntu machine and homestead on it.

Changed my clock 1h back to which it was right but then it wouldn't refresh the views.

THanks to you. i would have never found out what it caused.