whereIn('node', array_column($nodeList, 'node'))->select(); } public static function update($id, $title, $is_auth) { Db::table(self::$table)->where('id', $id)->update([ 'update_time' => time(), 'title' => $title, 'is_auth' => $is_auth, ]); } public static function getNodeAndTitleAndIsAuth() { return Db::table(self::$table)->field('node,title,type,is_auth')->select(); } }