title: How to save using condition in laravel?
body: <p>Basically I want to save data in my model using condition to prevent multiple save data being performed simultaneously. </p>
  
  <p>What I currently do now is:</p>
  
  <pre><code>$order = Order::find(id);
  $order-&gt;paid_amount = $amount;
  $order-&gt;status = $status;
  $order-&gt;save();
  </code></pre>
  
  <p>What I need is:</p>
  
  <pre><code>$order = Order::find(id);
  $order-&gt;paid_amount = $amount;
  $order-&gt;status = $status;
  $order-&gt;where('last_update', $last_update);
  $order-&gt;save();
  </code></pre>
  
  <p>Is it possible to do this in laravel efficiently or do I have to use raw sql or update?</p>