code: protected function triggerDeploy($project)
      {
          // Ensure we have a project hook.
          if (!$project) {
              throw new InvalidArgumentException('Incorrect project hook.');
          }
  
          // Trigger the deploy hook.
          file_get_contents(sprintf(self::DEPLOY_URL, $project));
  
          // Output message.
          $this->info('Deployment request successful!');
      }
docs: Trigger a deployment by project hook.
  
  @param  string $project
  @return void