model = app($this->getModelClass()); $this->auth = $auth; } public function getOneById($id): ?Model { return $this->model->find($id); } public function getByIds(array $ids): Collection { return $this->model->whereIn($this->model->getKeyName(), $ids)->get(); } public function getAll(): Collection { return $this->model->all(); } }