updates to controllers for moon requests:
This commit is contained in:
@@ -143,6 +143,8 @@ class MoonsController extends Controller
|
|||||||
'Moon' => $request->moon,
|
'Moon' => $request->moon,
|
||||||
])->get();
|
])->get();
|
||||||
|
|
||||||
|
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