keyBy(function (GeneralConfig $item) { return $item->type->value(); }); return view('fo.pages.home', compact('configList')); } }