order(['sort' => 'asc', 'create_time' => 'asc'])->select(); $all = !empty($data) ? $data->toArray() : []; Cache::tag('cache')->set('article_category_' . $model::$wxapp_id, $all); } return Cache::get('article_category_' . $model::$wxapp_id); } }