lookup helper
This commit is contained in:
@@ -43,8 +43,6 @@ class DashboardController extends Controller
|
||||
//Find start and end station. Need to work on how to tell citadels later.
|
||||
$startStation = $lookupHelper->GetStationDetails($con->start_location_id);
|
||||
$endStation = $lookupHelper->GetStationDetails($con->end_location_id);
|
||||
|
||||
dd($endStation);
|
||||
|
||||
if(isset($startStation->system_id)) {
|
||||
$startSystem = $lookupHelper->GetSolarSystemName($startStation->system_id);
|
||||
|
||||
@@ -740,7 +740,7 @@ class LookupHelper {
|
||||
$count = StationLookup::where(['station_id' => $id])->count();
|
||||
|
||||
if($count > 0) {
|
||||
$station = StationLookup::where(['station_id' => $id])->get();
|
||||
$station = StationLookup::where(['station_id' => $id])->first();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@@ -749,7 +749,7 @@ class LookupHelper {
|
||||
$count = StationLookup::where(['name' => $name])->count();
|
||||
|
||||
if($coutn > 0) {
|
||||
$station = StationLookup::where(['name' => $name])->get();
|
||||
$station = StationLookup::where(['name' => $name])->first();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user