下面直接貼程式碼出來吧:
1. blade.php代码如下:
@if($role->name !== 'admin')
@ability('admin', 'delete_role')
@include('auth.roles._deleteForm')
@endability
@endif
@ability('admin', 'edit_role')
@include('auth.roles._editRoleModal')
@endability
2. 错误显示:
#
3. entrust版本为"zizaco/entrust": "5.2.x-dev"
這是一個神奇的問題,不知哪位大神遇過或解決過的,來討論討論吧