moon reservations
This commit is contained in:
@@ -144,7 +144,9 @@ class MoonsController extends Controller
|
|||||||
'Moon' => $request->moon,
|
'Moon' => $request->moon,
|
||||||
])->first();
|
])->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.');
|
return redirect('/moons/display/request')->with('error', 'The moon has already been reserved by another party.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,6 @@ class AllianceMoon extends Model
|
|||||||
'FourthOre',
|
'FourthOre',
|
||||||
'FourthQuantity',
|
'FourthQuantity',
|
||||||
'MoonType',
|
'MoonType',
|
||||||
'Available',
|
'Availability',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user