title: How can i get First table records on base of third table by using laravel 5 eloquent model
body: <p>Requested tables are listed below:</p>
  
  <pre><code>**User Table**
  id, name
  1, vehicle person name
  2, renter person name
  
  **Vehicle Table**
  id, user_id, vehicle_name
  1, 1, My car
  
  **Booking Table**
  id, renter_id, vehicle_id
  1, 2, 1
  </code></pre>
  
  <p><strong>User Model</strong></p>
  
  <pre><code>public function renter() {
      return $this-&gt;hasMany(Booking::class, 'renter_id');
  }
  
  public function vehicleBook() {
      return $this-&gt;hasManyThrough(Booking::class, Vehicle::class);
  }
  </code></pre>
  
  <p><strong>Booking Model</strong></p>
  
  <pre><code>public function user() {
          return $this-&gt;belongsTo(User::class, 'renter_id');
   }
  </code></pre>
  
  <p><strong>Vehicle Model</strong></p>
  
  <pre><code>public function user() {
          return $this-&gt;belongsTo(User::class);
      }
  </code></pre>
  
  <p><strong>My Controller</strong></p>
  
  <pre><code>$renters = Auth::user()-&gt;renter()-&gt;get();
  $owners = Auth::user()-&gt;vehicleBook()-&gt;get();
  
  // In Loop
  $renter-&gt;user-&gt;name; // renter person name
  $owner-&gt;user-&gt;name; // vehicle person name
  </code></pre>
  
  <p><strong>Result</strong> </p>
  
  <p>On base of booking Table i want to get renter person and vehicle person name using Laravel 5 ORM.</p>
  
  <p>I have done that using two calls but i want to know if there is any way to get result using one call ?</p>