character name to id issue

This commit is contained in:
2019-08-26 19:33:24 -05:00
parent 3712ae9395
commit 87ecbb9407

View File

@@ -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) {