moons controller
This commit is contained in:
@@ -34,10 +34,16 @@ class MoonsController extends Controller
|
|||||||
public function displayMoons() {
|
public function displayMoons() {
|
||||||
//Setup variables for moons
|
//Setup variables for moons
|
||||||
$moons = array();
|
$moons = array();
|
||||||
|
$systems = array();
|
||||||
|
|
||||||
//Get all of the alliance moon systems from the database
|
//Get all of the alliance moon systems from the database
|
||||||
$systems = DB::table('alliance_moons')->select('System')->distinct()->get()->toArray();
|
$systemsTemp = DB::table('alliance_moons')->select('System')->distinct()->get()->toArray();
|
||||||
dd($systems[0]->System);
|
foreach($systemsTemp as $key => $value) {
|
||||||
|
array_push($systems, $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
dd($systems);
|
||||||
|
|
||||||
//Get all of the alliance moons from the database
|
//Get all of the alliance moons from the database
|
||||||
$moons = AllianceMoon::all();
|
$moons = AllianceMoon::all();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user