1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 16:34:26 +02:00

lists > pluck

This commit is contained in:
Daniel Klabbers
2017-10-05 13:39:41 +02:00
parent 4f688fc9a2
commit 2037371886
13 changed files with 33 additions and 33 deletions

View File

@@ -94,7 +94,7 @@ class UserRepository
->orderByRaw('username = ? desc', [$string])
->orderByRaw('username like ? desc', [$string.'%']);
return $this->scopeVisibleTo($query, $actor)->lists('id');
return $this->scopeVisibleTo($query, $actor)->pluck('id')->all();
}
/**