/** * Get collection of all users or set of users by ids. * * @param array $ids Northstar IDs * @return \Illuminate\Support\Collection */ public function getAll(array $ids = []) { // @TODO: returns collection of users without the role property, but should it be included? if ($ids) { $accounts = $this->getBatchedCollection($ids); return $accounts; } $accounts = $this->getBatchedCollection(User::all()->pluck('id')->all()); return $accounts; }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // @TODO: temp for now, likely want to use repository and transform. return User::all(); }