public function find($id) { if ($id == 'last') { $menu = Menu::getLast(); } else { $menu = Menu::find($id); } if (empty($menu)) { return $this->failResponse('Menu not found ', self::STATUS_NOTFOUND); } return $this->respondWithItem($menu); }