field('id,name,image,sort') ->order(['sort'=>'asc','id'=>'desc']) ->select() ->toArray(); return $lists; } /** * @notes 商品品牌总数 * @return int * @author ljj * @date 2021/10/9 11:44 上午 */ public function count(): int { return GoodsBrand::where('is_show',YesNoEnum::YES)->count(); } }