character name to id issue

This commit is contained in:
2019-08-26 19:33:24 -05:00
parent 3712ae9395
commit 87ecbb9407
+4 -2
View File
@@ -39,13 +39,15 @@ class LookupHelper {
if($count === 0) { if($count === 0) {
//Format the name //Format the name
$name = str_replace(' ', '%20', $character); $name = str_replace(' ', '%20', $character);
dd($name); //dd($name);
try { try {
//Get the character id from the ESI API. //Get the character id from the ESI API.
$response = $esi->setQueryString([ $response = $esi->setQueryString([
'categories' => 'character', 'categories' => 'character',
'search' => $name, 'search' => $name,
'strict' => 'false', 'strict' => 'true',
'language' => 'en-us',
'datasource' => 'tranquility',
])->invoke('get', '/search/'); ])->invoke('get', '/search/');
} catch(RequestFailedException $e) { } catch(RequestFailedException $e) {