working on bids
This commit is contained in:
@@ -151,7 +151,6 @@ class ContractController extends Controller
|
|||||||
$characterName = auth()->user()->getName();
|
$characterName = auth()->user()->getName();
|
||||||
//Use the lookup helper in order to find the user's corporation id and name
|
//Use the lookup helper in order to find the user's corporation id and name
|
||||||
$corporationId = $lookup->LookupCharacter($characterId);
|
$corporationId = $lookup->LookupCharacter($characterId);
|
||||||
dd($corporationId);
|
|
||||||
$corporationName = $lookup->LookupCorporationName($corporationId);
|
$corporationName = $lookup->LookupCorporationName($corporationId);
|
||||||
dd($corporationName);
|
dd($corporationName);
|
||||||
//Create the model object to save data to
|
//Create the model object to save data to
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class LookupHelper {
|
|||||||
return $character->corporation_id;
|
return $character->corporation_id;
|
||||||
} else {
|
} else {
|
||||||
//Return the corporation_id if it was found in the database as it is what the calling function is looking for
|
//Return the corporation_id if it was found in the database as it is what the calling function is looking for
|
||||||
return $found;
|
return $found[0]->corporation_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user