moon reservations

This commit is contained in:
2020-03-02 21:20:39 -06:00
parent f0060c8442
commit 34ca85a72e
2 changed files with 4 additions and 2 deletions

View File

@@ -144,7 +144,9 @@ class MoonsController extends Controller
'Moon' => $request->moon,
])->first();
if($future->Available != 'Available') {
dd($future);
if($future->Availability != 'Available') {
return redirect('/moons/display/request')->with('error', 'The moon has already been reserved by another party.');
}

View File

@@ -36,6 +36,6 @@ class AllianceMoon extends Model
'FourthOre',
'FourthQuantity',
'MoonType',
'Available',
'Availability',
];
}