当我添加新代码时,出现错误“此缓存存储区不支持标记".在拉拉韦尔? [英] when I add my new code then getting error "This cache store does not support tagging" in laravel?
本文介绍了当我添加新代码时,出现错误“此缓存存储区不支持标记".在拉拉韦尔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在laravel中的blade.php中编写代码,但是给定错误
I trying write code in blade.php in laravel but given error
我正常的php代码是:
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;
?>
我在blade.php中这样做:
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 }}
推荐答案
来自文档:
使用文件或数据库缓存驱动程序时,不支持缓存标记.
Cache tags are not supported when using the file or database cache drivers.
这篇关于当我添加新代码时,出现错误“此缓存存储区不支持标记".在拉拉韦尔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文