character name to id issue
This commit is contained in:
@@ -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) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user