Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

@ability 使用模板解析错误 #887

Open peimengc opened 6 years ago

peimengc commented 6 years ago

php版本5.5.38 模板中使用 @ability('admin','perms_index')

  • 权限管理
  • @endability 错误: FatalErrorException in c60ef01e49d9ffa6a9c449180c369cfe line 76: syntax error, unexpected ',' in c60ef01e49d9ffa6a9c449180c369cfe line 76 打开此文件解析内容如下:(多了一个括号)
  • 权限管理
  • hxshandle commented 6 years ago

    是的, 我也遇到了这个问题,多了一对括号 <?php if (\Entrust::ability(('admin,owner', 'create-post,edit-user'))) : ?>

    szepeviktor commented 6 years ago

    Titled: @ability Use templates to parse the error