예제 #1
0
 /**
  * 获取可设置为.
  *
  * @return mixed
  */
 public function getTopMenu()
 {
     return $this->menuRepository->scopeQuery(function ($query) {
         return $query->where('parent_id', '=', 0);
     })->all();
 }