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