I have an exception in one of my views. However, instead of telling me the name of the view so I can find it and fix it, laravel says it is in app/storage/views/110a3ecc0aa5ab7e6f7f50ef35a67a8b
, which is meaningless.
How do I disable this view caching, so that laravel uses and refers to the actual files?
Out of the box? You can't. But you can extend the BladeCompiler class, overriding the method resposible for checking if the view has been expired:
You'll need to replace the BladeCompiler instance in IoC container, with your own compiler:
And then you just need to create that key in your app/config/view.php file
Or, like I do here:
Solution
open php.ini
change to this. restart apache.
In development environment, I just add and modify the next:
bootstrap/start.php
app/config/testing/cache.php
add in arrayapp/config/view.php
add in arrayAlthough some would call this sketchy, this was the quickest and most minimal way to do this on a small application I was working on
On the controller(s) that my routes pointed to: