code: public function add($type, $message, $title = null, $options = [])
      {
          $types = [
              'error',
              'info',
              'success',
              'warning',
          ];
  
          if (! in_array($type, $types)) {
              throw new \Exception("The $type remind message is not valid.");
          }
  
          $this->messages[] = [
              'type'    => $type,
              'title'   => $title,
              'message' => $message,
              'options' => $options,
          ];
  
          $this->session->flash('toastr::messages', $this->messages);
  
          return $this;
      }
docs: @param string $type
  @param string $message
  @param string $title
  @param array  $options
  
  @throws \Exception
  @return $this