re-arranging moon stuff in the correct controller

This commit is contained in:
2018-10-23 20:48:03 -05:00
parent 83b00bab4f
commit 124f02367b
7 changed files with 19 additions and 32 deletions

View File

@@ -11,12 +11,22 @@ use Seat\Eseye\Eseye;
class MoonsController extends Controller
{
public function displayMoons() {
$moons = DB::table('moons')->get();
return view('dashboard.moon.moon')->with('moons', $moons);
}
public function addMoon() {
return view('dashboard.addmoon');
}
/**
* Add a new moon into the database
*
* @return \Illuminate\Http\Reponse
*/
public function addMoon(Request $request) {
public function storeMoon(Request $request) {
$this->validate($request, [
'region' => 'required',
'system' => 'required',
@@ -72,5 +82,6 @@ class MoonsController extends Controller
// Instantiate a new ESI instance.
$esi = new Eseye($authentication);
return 'Work In Progress!';
}
}