问题
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