title: Replicate Eloquent in Laravel with changing some columns
body: <p>I'm using the replicate eloquent and it doesn't work on me. Replicate the row in database with changing some columns and it will save by clicking the button, can you please help me?
  My coding for controller</p>
  
  <pre><code>   public function newpayrolls(Request $request, $id){
      $newpay = Payroll::find($id);
      $newpay = $newpay-&gt;replicate();
      $newpay-&gt;id = $new_id;
      $newpay-&gt;data = $new_data;
      $newpay-&gt;save();
       return redirect("/payroll");
  </code></pre>
  
  <p>Coding for my blade.php</p>
  
  <pre><code> &lt;button class ="btn btn-primary btnd" type="submit" value="Submit"&gt;
        &lt;span class="glyphicon glyphicon-arrow-left small"&gt;&lt;/span&gt; Save as 
   new Payroll
      &lt;/button&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>And this is my route</p>
  
  <pre><code>Route::get('/viewpayrolls/{id}','PayrollController@newpayrolls');
  </code></pre>