title: how to match value from Excel with database?
body: <p>I have an Excel file and will upload and save to database.</p>
  
  <p>In the Excel file, there are several columns, for example:</p>
  
  <pre><code>No    IC  Amount
  1     123  800
  2     124  900
  3     125  890
  </code></pre>
  
  <p>...and in table in the database:</p>
  
  <p>No IC Amount</p>
  
  <pre><code>1  123  0
  2  124  0
  </code></pre>
  
  <p>It's only updating the field when IC field matched between Excel and database.</p>
  
  <p>What i want to ask how to count mathed and unmatched IC? I want to give notification such as:</p>
  
  <blockquote>
    <p><strong>number of data successfully to update</strong></p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p><strong>number of IC not matched with database</strong></p>
  </blockquote>
  
  <p>This is my PHP code:</p>
  
  <pre><code>$numbers = Loandisburse::where('ic', $value['ic_no'])-&gt;count();
  </code></pre>