diff --git a/app/Http/Controllers/Moons/MoonsController.php b/app/Http/Controllers/Moons/MoonsController.php index 1d7d8a669..5d57001bc 100644 --- a/app/Http/Controllers/Moons/MoonsController.php +++ b/app/Http/Controllers/Moons/MoonsController.php @@ -240,7 +240,7 @@ class MoonsController extends Controller //Setup calls to the MoonCalc class $moonCalc = new MoonCalc(); //get all of the rental moons from the database - $moons = DB::table('Moons')->orderBy('System', 'asc')->get(); + $moons = DB::table('RentalMoons')->orderBy('System', 'asc')->get(); //Set the rental date as last month for moons not rented $lastMonth = Carbon::now()->subMonth(); //Set a variable for today's date