404labfr / 404labfr/laravel-impersonate

[Feature Request] Get all users who can be impersonated?

オープン
#90 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature help wanted
主要言語
PHP
スター
2.3k
フォーク
235
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, I was looking for something or some way to get a list of all users who CAN be impersonated, is that something you'd consider adding to this library?

I can obviously do this on my own end, I just didn't know if this would represent a common enough use case to justify it being part of your solution.

I can always do something like this, not sure if there's a cleaner way here:

```
public static function impersonatable(){
return User::cursor()->filter(function ($user){
return $user->canBeImpersonated();
});
}
```

Your library is great though, thanks so much!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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