parse() public method

Parse the body of a notification with your extras values or relation values.
public parse ( $item ) : string
$item
return string
 /**
  * Parse the body of the notification
  *
  * @return $this
  */
 public function parse()
 {
     $parser = new NotifynderParser();
     foreach ($this->items as $key => $item) {
         $this->items[$key]['text'] = $parser->parse($item);
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * Get parsed body attributes.
  *
  * @return string
  */
 public function getNotifyBodyAttribute()
 {
     $notifynderParse = new NotifynderParser();
     return $notifynderParse->parse($this);
 }