Answers for "how to make a join with or condition in laravel"

PHP
1

join in laravel

$subCategories = Subcategory::join('categories', 'subcategories.category_id', '=', 'categories.id')
                              ->select('subcategories.*', 'categories.name AS cname')
                              ->orderBy('id', 'desc')
                              ->get();
Posted by: Guest on January-26-2021

Code answers related to "how to make a join with or condition in laravel"

Browse Popular Code Answers by Language