/** * 获取最新的公告栏 * * @return array */ private function obtainRepresent() { $new = \App\Represent::getNewestAnnouncement(); return is_null($new) ? $this->emptyRepresent : $new->toArray(); }