andersao / andersao/l5-repository

Why my Criteria not apply?

オープン
#267 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。