title: Laravel - Eloquent multiple delete vs destroy array
body: <p>I was wondering what's the best way to destroy multiples database entries with ELOQUENT and I don't find a way to determine that.</p>
  
  <p>So I have 3 array of id's (2 with ints, 1 with strings).
  Is it better to go with a foreach and ->delete() every entry or destroy the array ?</p>
  
  <p>When I look at the <a href="https://laravel.com/docs/5.4/eloquent#deleting-models" rel="nofollow noreferrer">destroy</a> function, it states the following : </p>
  
  <blockquote>
    <p>We will actually pull the models from the database table and call 
    delete on each of them individually so that their events get fired
    properly  with a correct set of attributes in case the developers
    wants to check  these.</p>
  </blockquote>
  
  <p>And the code clearly shows : </p>
  
  <pre><code>$key = $instance-&gt;getKeyName();
  
  foreach ($instance-&gt;whereIn($key, $ids)-&gt;get() as $model) {
      if ($model-&gt;delete()) {
          $count++;
      }
  }
  </code></pre>
  
  <p>So I guess there's no real difference and the destroy function is just to avoid the use of a foreach. Can anyone confirm or inform and explain ?</p>
  
  <p>Thanks :)</p>