Answers for "laravel join and condition eloquent model"

PHP
7

join in laravel eloquent

$customer = DB::table('customers')
                ->join('shops', 'customers.shop_id', '=', 'shops.shop_id')
                ->where('customer_contact', $contact_no)
                ->get();
Posted by: Guest on October-06-2020
0

laravel eloquent join two models

Event::whereHas('participants', function ($query) {
    return $query->where('IDUser', '=', 1);
})->get();
Posted by: Guest on September-12-2021

Code answers related to "laravel join and condition eloquent model"

Browse Popular Code Answers by Language