moon reservations

This commit is contained in:
2020-03-02 21:06:38 -06:00
parent 98bda601c5
commit 8c2008891f

View File

@@ -136,6 +136,8 @@ class MoonsController extends Controller
return redirct('/moons/display/request')->with('error', 'Region was not found.');
}
dd($request->system);
//Check to see if the moon is not available
$future = AllianceMoon::where([
'System' => $request->system,
@@ -143,8 +145,6 @@ class MoonsController extends Controller
'Moon' => $request->moon,
])->first();
dd($future);
if($future->Available != 'Available') {
return redirect('/moons/display/request')->with('error', 'The moon has already been reserved by another party.');
}