title: Laravel Saving event in case of bulk-insert
body: <p>Iam bulk-inserting large database in chunks with this command:</p>
  
  <pre><code>DB::table($table)-&gt;insert($chunk);
  </code></pre>
  
  <p>But want I want is before actual <code>insert</code> operation, I want to be able to modify <code>$chunk</code> array for each table to add/remove certain attributes going into database. In order to do so, I setup <code>saving</code> event in my model:</p>
  
  <pre><code>public static function boot()
  {
      parent::boot();
  
      static::saving(function ($model) {
          Log::info('saving');
          return true;
      });
  }
  </code></pre>
  
  <p>However, it seems events don't work for <code>Model::insert</code> operations.</p>
  
  <p>Can anybody tell how can I achieve this ?</p>
  
  <p>PS: I can't use <code>save()</code> (though saving event would work with it) method as it would only allow me to save one record at a time whereas I need to do bulk insert of each chunk.</p>
  
  <p>Thanks</p>