marking moons paid

This commit is contained in:
2019-04-25 00:58:12 -05:00
parent 79998ed3d1
commit 0c2207029f

View File

@@ -231,14 +231,14 @@ class MoonsAdminController extends Controller
]);
$str_array = explode(" - ", $request->paid);
//Decode the value for the SPM into a system, planet, and moon for the database to update
$system = $str_array[0];
$planet = $str_array[1];
$moon = $str_array[2];
//Update the paid status of the moon
MoonRent::where([
Moon::where([
'System' => $system,
'Planet' => $planet,
'Moon' => $moon,
@@ -247,6 +247,6 @@ class MoonsAdminController extends Controller
]);
//Redirect back to the moon page, which should call the page to be displayed correctly
return redirect('moons/admin/adminmoon');
return redirect('/moons/admin/display');
}
}