code: public function map(array $keys, bool $trim = true, bool $clean = true)
      {
          $values = $this->only(array_keys($keys), $trim, $clean);
  
          $new = [];
          foreach ($keys as $key => $value) {
              $new[$value] = array_get($values, $key);
          }
  
          return $new;
      }
docs: Get a mapped subset of the items from the input data.
  
  @param string[] $keys
  @param bool     $trim
  @param bool     $clean
  
  @return array