title: Array to string conversion error while moving data from one table to another
body: <p>I am trying to move data to recyclebin table and delete from user table at the same time while having the above mentioned error. So far i had tried the code under as</p>
  
  <pre><code> public function deleteUser($id)
   {
          $recycle=User::where('id',$id)-&gt;first();
  
          $cycle = new RecycleBin();
          $cycle-&gt;name = $recycle-&gt;name;
          $cycle-&gt;email = $recycle-&gt;email;
          $cycle-&gt;user_type = $recycle-&gt;user_type;
          $cycle-&gt;save();
          User::where('id',$id)-&gt;delete();
       return redirect()-&gt;back()
               -&gt;with('message','Deleted Successfully');
   }
  </code></pre>
  
  <p>anyone who can help me out.</p>