repository = $repository; } public function execute(String $serviceId){ try{ $repository = $this->repository->findOrFail($serviceId); $repository->delete(); }catch(\Exception $exception){ throw new InternalServerErrorException("Failed to delete Customer Relation because{$exception->getMessage()}"); } } }