📅  最后修改于: 2022-03-11 14:54:03.490000             🧑  作者: Mango
$subCategories = Subcategory::join('categories', 'subcategories.category_id', '=', 'categories.id')
->select('subcategories.*', 'categories.name AS cname')
->orderBy('id', 'desc')
->get();