protected function loadBadge() { $id = post('id'); return Badge::find($id); }
public function onRenderBadge() { $id = post('id'); $badge = Badge::find($id); return BadgeManager::render($this, $badge); }