moons admin controller

This commit is contained in:
2019-05-31 23:47:27 -05:00
parent b6bbd1532c
commit 2065553f97

View File

@@ -87,14 +87,19 @@ class MoonsAdminController extends Controller
//Create the date
$date = new Carbon($request->date . '00:00:01');
$count = MoonRental::where([
'System' => $request->system,
'Planet' => $request->planet,
'Moon' => $request->moon,
'Contact' => $contact,
])->first()->count();
$found = MoonRental::where([
'System' => $request->system,
'Planet' => $request->planet,
'Moon' => $request->moon,
'Contact' => $contact,
])->first();
$count = $found->count();
dd($count);
//Calculate the price of the moon for when it's updated