when I add my new code then getting error “This cache store does not support tagging” in laravel?

限于喜欢 提交于 2019-12-13 15:00:50

问题


I trying write code in blade.php in laravel but given error

my normal php code is :

<?php echo $uri_segment == "users" ? "active" : "";

        use App\Libraries\Commonlibrary;

$menu_list_view = Commonlibrary::sidebar_menu_list();
        echo $menu_list_view;
    ?>

I doing in blade.php like :

 {{ $uri_segment == "users" ? "active" : "" }}
    @php use App\Libraries\Commonlibrary;
        $menu_list_view = Commonlibrary::sidebar_menu_list();
    @endphp
{{ $menu_list_view }}

回答1:


From the docs:

Cache tags are not supported when using the file or database cache drivers.



来源:https://stackoverflow.com/questions/48786597/when-i-add-my-new-code-then-getting-error-this-cache-store-does-not-support-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!