title: Laravel - Archiving Data, Delete and Insert to another Table
body: <p>When I click the button delete I want to delete the data and insert it to another table which is the archive how can I do it?</p>
  
  <p>For e.g, my new another table model named <strong>Archive</strong> and new table named <strong>archive</strong></p>
  
  <p>Here is my Destroy Public Function:</p>
  
  <pre><code>public function destroy($id)
  {
      $client = Client::find($id);
      $client-&gt;delete();
  
  }
  </code></pre>
  
  <p>My Store Public Function:</p>
  
  <pre><code>$client = new Client;
  $client-&gt;client_code = $request-&gt;input('client_code');
  $client-&gt;client_name = $request-&gt;input('client_name');
  </code></pre>