×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Nilesh Yadav
Added: Jun 22, 2017 11:21 AM
Views: 9
Tags: laravel
  1. $result = InventoryThresholdLimit
  2.       ::join('contacts', 'users.id', '=', 'contacts.user_id')
  3.        ->join('orders', 'users.id', '=', 'orders.user_id')
  4.       ->select('users.id', 'contacts.phone', 'orders.price')
  5.       ->getQuery() // Optional: downgrade to non-eloquent builder so we don't build invalid User objects.
  6.       ->get();
  7.