From 87ecbb94073f251e9adfa84bfb55caeee2894a0e Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 26 Aug 2019 19:33:24 -0500 Subject: [PATCH] character name to id issue --- app/Library/Lookups/LookupHelper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Library/Lookups/LookupHelper.php b/app/Library/Lookups/LookupHelper.php index 6fc36a3d0..84ec17b08 100644 --- a/app/Library/Lookups/LookupHelper.php +++ b/app/Library/Lookups/LookupHelper.php @@ -39,13 +39,15 @@ class LookupHelper { if($count === 0) { //Format the name $name = str_replace(' ', '%20', $character); - dd($name); + //dd($name); try { //Get the character id from the ESI API. $response = $esi->setQueryString([ 'categories' => 'character', 'search' => $name, - 'strict' => 'false', + 'strict' => 'true', + 'language' => 'en-us', + 'datasource' => 'tranquility', ])->invoke('get', '/search/'); } catch(RequestFailedException $e) {