| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace VojtaSvoboda\UserBanned\Controllers; |
||
| 23 | public function listExtendQuery($query) |
||
| 24 | { |
||
| 25 | $throttleModel = Auth::createThrottleModel(); |
||
| 26 | $bannedCollection = $throttleModel->where('is_banned', true)->get()->map(function ($item) { |
||
| 27 | return $item->user_id; |
||
| 28 | }); |
||
| 29 | $query->whereIn('id', $bannedCollection); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |