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