$c = Customer::leftJoin('orders', function($join) { $join->on('customers.id', '=', 'orders.customer_id'); }) ->whereNull('orders.customer_id') ->first([ 'customers.id', 'customers.first_name', 'customers.last_name', 'customers.email', 'customers.phone', 'customers.address1', 'customers.address2', 'customers.city', 'customers.state', 'customers.county', 'customers.district', 'customers.postal_pre', 'customers.country' ]);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)