andersao / andersao/l5-repository
Why my Criteria not apply?
未关闭
bug
- 主要语言
- PHP
- 星标
- 4.2k
- 派生
- 880
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hello guys,
Can anyone inspect this code and help me to understand why my criteria not apply?
My Criteria:
```
where('show_admin', '=', false);
return $model;
}
}
```
My Repository:
```
pushCriteria(new UserCriteria());
}
}
/**
* Specify Model class name
*
* @return string
*/
public function model()
{
return User::class;
}
```
But when I login with user with role !== 'owner' the criteria not apply
Help me please!
贡献指南
评估
这个 Issue 还没有评估数据。