title: How to find if record is created or updated in updateOrCreate function?
body: <p>I've a simple post form. Records are saved to database with <code>updateOrCreate</code> function.</p>
  
  <p>I've following records to be stored,</p>
  
  <ol>
  <li>user_id</li>
  <li>product_id</li>
  <li>review</li>
  <li>rating</li>
  </ol>
  
  <p>After submitting form, <code>user_id</code> and <code>product_id</code> are used to check if record exist or not. If exist, record will be updated otherwise new record created with the function.</p>
  
  <pre><code>public function updateOrCreate($input)
  {
      return $this-&gt;model-&gt;updateOrCreate(['product_id'=&gt; $input['product_id'],'user_id'=&gt;$input['user_id']],['rating'=&gt;$input['rating'],'review'=&gt;$input['review']]);
  }
  </code></pre>
  
  <p>Is there any built in method to find new record created or existing record updated ?</p>
  
  <p>Any kind of suggestion is appreciated.</p>