/** * @return \Illuminate\Contracts\View\View */ public function index() { $groups = MenuGroup::all(); $this->share('count', $groups->count()); $this->share('groups', $groups); return $this->view('menu.group.index'); }