public function create() { $categoryList = Category::getAllItem(); $categoryLv2List = json_encode(category_lv2::getAllItem()); return view("member.new-post.new-post", ['categoryList' => $categoryList, 'categoryLv2List' => $categoryLv2List]); }