laravel disable blade cache

laravel disable blade cache

Inside of your app/config/view.php file you'll want to set 'cache' => false,, this will disable your view caching and can come in handy when you are building some blade directives or developing a Laravel package.

   'cache' => false,

        


Optionally, if you want to disable caches for specific environments (say: production and staging), you could do something like this:



'cache' => in_array(App::environment(), ['production', 'staging']),
        

要查看或添加评论,请登录

Susheel Kumar的更多文章

社区洞察

其他会员也浏览了