title: production.ERROR: exception 'ErrorException' with message 'Undefined index:
body: <p>I am receiving the error </p>
  
  <blockquote>
    <p>'production.ERROR: exception 'ErrorException' with message 'Undefined
    index: HWID_App'</p>
  </blockquote>
  
  <p>It's since I added the MSSQL connection to the file. (I have added the database configuration to the database.php already)</p>
  
  <pre><code>&lt;?php
   [...]
  public function Conn_Guid(Request $r)
  {
      foreach ($r-&gt;input() as $file) {
  
          DB::connection('sqlsrv')-&gt;select(array($r-&gt;ip(),$file['HWID_App']), 'exec dbo.GSP_INSERT_AUTH_DATA(?,?,..)');
  
          $exists12 = DB::table('GuildLog')-&gt;where('HWID', $file['HWID_App_Log'])-&gt;exists();
  
          if ($exists12) {
              die;
  
  
          } else {
              DB::table('GuildLog')-&gt;Insert([
                  [
                      'HWID' =&gt; $file['HWID_App_Log'],
                      'time' =&gt; Carbon::now(),
                      'IP' =&gt; $r-&gt;ip()
                  ]
              ]);
          }
  
      }
  }
  </code></pre>
  
  <p>Could you kindly help me out? Thanks!</p>