select('id', 'name')->where('type', $type)->where('status', $status)->get()->toArray(); return $categoryData; } }