title: Laravel / Eloquent: how to hook into the deletion process?
body: <p>When a record gets deleted from <code>my_items_table</code> I want to insert the record into <code>my_items_table_archive</code>.</p>
  
  <p>I could do this on each Controller, but would <strong>prefer to hook into the Eloquent model</strong>.</p>
  
  <p>Is there anything like this?</p>
  
  <p><strong>Pseudocode:</strong></p>
  
  <pre><code>class MyItem extends Model {
      protected function beforeDelete($record) {
          MyItemArchive::create($record); // add record the archive
          return true; // continue deletion of $record 
      }
  }
  </code></pre>
  
  <p>Any idea? Thanks!</p>