code: protected function getUrlFromName(string $name)
      {
          if (Str::endsWith($name, 'Job')) {
              $name = substr($name, 0, -3);
          }
  
          return strtolower(preg_replace('/(?<!^)[A-Z]/', '-$0', $name));
      }
docs: Converts the job class name into a URL endpoint.
  
  @param string $name The name of the job
  
  @return string