我尝试在 laravel 中的blade.php 中编写代码,但出现错误
我正常的 php 代码是:
<?php echo $uri_segment == "users" ? "active" : "";
use App\Libraries\Commonlibrary;
$menu_list_view = Commonlibrary::sidebar_menu_list();
echo $menu_list_view;
?>
我在 Blade.php 中做的事情如下:
{{ $uri_segment == "users" ? "active" : "" }}
@php use App\Libraries\Commonlibrary;
$menu_list_view = Commonlibrary::sidebar_menu_list();
@endphp
{{ $menu_list_view }}
From the docs https://laravel.com/docs/5.5/cache#cache-tags:
使用文件或数据库缓存驱动程序时不支持缓存标记。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)