moons controller updating moons

This commit is contained in:
2018-10-30 01:22:06 -05:00
parent 8e21b913e6
commit 76c169d0ba

View File

@@ -108,7 +108,11 @@ class MoonsController extends Controller
$date = strtotime($request->date . '00:00:01'); $date = strtotime($request->date . '00:00:01');
//Update the database entry //Update the database entry
DB::table('Moons') DB::table('Moons')
->whereColumn([$request->system, '=', 'System'], [$request->planet, '=', 'Planet'], [$request->moon, '=', 'Moon']) ->whereColumn([
['System', '=', $request->system],
['Planet', '=', $request->planet],
['Moon', '=', $request->moon]
])
->update([ ->update([
'RentalCorp' => $request->renter, 'RentalCorp' => $request->renter,
'RentalEnd' => $date, 'RentalEnd' => $date,