moons controller

This commit is contained in:
2020-02-23 20:45:45 -06:00
parent afe989f0e5
commit 2c62f3018e

View File

@@ -32,15 +32,13 @@ class MoonsController extends Controller
* Function to display all alliance moons and pass data to the blade template
*/
public function displayMoons() {
$moons = array();
//Get all of the alliance moons from the database
$moonsTemp = AllianceMoon::orderBy('System', 'asc')->distinct()->get(['System']);
$systems = DB::table('alliance_moons')->select('System')->distinct()->get();
dd($moonsTemp);
dd($systems);
return view('moons.user.allmoons')->with('moons', $moons)
->with('systems', $systems);
return view('moons.user.allmoons');
}
/**