updated lookup helpers

This commit is contained in:
2019-06-28 20:14:03 -05:00
parent 46694f67da
commit fe23b239db

View File

@@ -36,10 +36,10 @@ class LookupHelper {
$configuration->cache = NullCache::class; $configuration->cache = NullCache::class;
//Setup class variables //Setup class variables
$esi = new Eseye(); $esi = new Eseye();
dd($character);
//Attempt to find the character name in the LookupCharacter table to see if we can match it to an id //Attempt to find the character name in the LookupCharacter table to see if we can match it to an id
$count = CharacterToCorporation::where(['character_name' => $character])->count(); $count = CharacterToCorporation::where(['character_name' => $character])->count();
dd($count);
if($count == 0) { if($count == 0) {
try { try {
//Get the character id from the ESI API. //Get the character id from the ESI API.