moons controller

This commit is contained in:
2020-02-23 23:47:41 -06:00
parent 50748ebdc9
commit ab7e91e06d
4 changed files with 55 additions and 2 deletions

View File

@@ -46,6 +46,15 @@ class MoonsController extends Controller
->with('moons', $moons);
}
/**
* Function to display alliance moons of a particular system
*/
public function displayMoonsSystem($system) {
$moons = AllianceMoon::where(['System' => $system])->get();
return view('moons.user.allmoons.system')->with('moons', $moons);
}
/**
* Function to display the moons and pass data to the blade template
*/