public function getImageAttribute() { return '<img src="' . Emoticon::find($this->id)->emoticon->getPath() . '" />'; }
public function onRender() { $this->page['toolbar'] = $this->property('toolbar'); $this->page['emoticonsJson'] = Emoticon::getJsonEmoctions(); $this->page['resizeMaxheight'] = $this->property('resize_maxheight'); }
<?php use ShahiemSeymor\Bbcode\Models\Emoticon; return Emoticon::getEmoctions();