title: Laravel check if updateOrCreate performed an update
body: <p>I have the following code in my controller:</p>
  <pre><code>for($i=0; $i&lt;$number_of_tourists; $i++) {
      $tourist = Tourist::updateOrCreate([
          'doc_number' =&gt; $request['doc_number'][$I]
      ],
      $tourist_to_update);
  }
  </code></pre>
  <p>Each time <code>updateOrCreate</code> runs, it does 1 of 3 things:</p>
  <ol>
  <li><p>Updates the model instance; OR</p>
  </li>
  <li><p>Creates and saves a new one; OR</p>
  </li>
  <li><p>Leaves everything unchanged (if model with such values already exists)</p>
  </li>
  </ol>
  <p>I need to <strong>check if <code>updateOrCreate</code> has done the first one (updated)</strong> and then execute some code.</p>
  <p>How can I do it?</p>