/** * Get a list of account a user belongs to. * * @param $input * * @return mixed */ public function getUserAccounts($input) { $queryString = array_key_exists('q', $input) ? $input['q'] : null; return $this->userRepository->getAccounts(Auth::user(), $queryString); }