title: Left Join with Multiple on clause Eloquent Laravel
body: <p>I have the following mysql query</p>
  <pre><code>select * from operatories o
  left join apts ap on o.location = ap.Location and o.operatory = ap.Operatory;
  </code></pre>
  <p>I also have two models</p>
  <pre><code>class Operatories extends Model
  {
      public function operatories()
      {
          return $this-&gt;hasMany('App\Models\Appointment', 'Location', 'location');
      }
  }
  </code></pre>
  <p>Appointments:</p>
  <pre><code>class Appointment extends Model
  {
      public function operatories()
      {
          return $this-&gt;belongsTo('App\Models\Operatories', 'operatory', 'Operatory');
      }
  }
  </code></pre>
  <p>In my controller I am trying to write the mysql query,</p>
  <p>this is what I have so far</p>
  <pre><code>$arrOperators   =   Operatories::leftJoin('appointment', function ($join) {
      $join-&gt;on('appointments.location','=','operatories.location');
  })
  </code></pre>
  <p>does anyone know how to write multiple on clause?</p>