repository = $repository; } public function execute(string $code): bool { return $this->repository->where('code', $code)->exists(); } }