public function notClients(ClientRepository $clientRepository) { $clients = $clientRepository->lists(); $users = $this->model->whereNotIn('id', $clients)->get(['id', 'name']); $lista = []; foreach ($users as $user) { $lista[$user->id] = $user->name; } return $lista; }