code: protected function invoke(string $hook, ...$arguments)
      {
          if (!method_exists($this, $hook)) {
              return null;
          }
  
          $result = $this->{$hook}(...$arguments);
  
          return $this->isInvokedResult($result) ? $result : null;
      }
docs: Invoke a hook.
  
  @param string $hook
  @param mixed ...$arguments
  @return mixed|null