moon reservations

This commit is contained in:
2020-03-02 21:01:16 -06:00
parent 22eadc832c
commit 98bda601c5

View File

@@ -143,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.');
} }