public function insert(Menu $menu);
/** * Insert menu * * @param Menu $menu menu instance * @return Menu */ public function insert(Menu $menu) { $menu = $this->repo->insert($menu); $key = $this->getCacheKey($menu->getKey()); $this->cache->put($key, $menu); return $menu; }