📌  相关文章
📜  加入 laravel eloquent - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:03.490000             🧑  作者: Mango

代码示例6
$subCategories = Subcategory::join('categories', 'subcategories.category_id', '=', 'categories.id')
                              ->select('subcategories.*', 'categories.name AS cname')
                              ->orderBy('id', 'desc')
                              ->get();