Spatie Laravel权限编码问题

时间:2020-08-11 11:55:23

标签: php laravel encoding laravel-blade spatie

使用Spatie Laravel许可包,当我尝试在刀片模板中选择包含'ñ'字符的权限名称时遇到了问题:

{{ $role->permissions()->pluck('name') }}

访问角色名称($role->name)给我一个正确的结果,但是,使用它以Unicode格式显示的pluck方法。

enter image description here

在此之前,我实际上就像在角色案例$permission->name中一样,访问权限的名称:

enter image description here

在数据库中如下所示:

enter image description here

0 个答案:

没有答案
相关问题