404labfr / 404labfr/laravel-impersonate

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

Đang mở
#90 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature help wanted
Ngôn ngữ chính
PHP
Star
2.3k
Fork
235
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.