diff --git a/app/Http/Controllers/Moons/MoonsController.php b/app/Http/Controllers/Moons/MoonsController.php index 758c702fe..3fd92e229 100644 --- a/app/Http/Controllers/Moons/MoonsController.php +++ b/app/Http/Controllers/Moons/MoonsController.php @@ -16,7 +16,7 @@ use App\Models\Moon\Moon; use App\Models\Moon\OrePrice; use App\Models\Moon\Price; use App\Models\MoonRent\MoonRental; -use App\Models\Moon\AllianceMoons; +use App\Models\Moon\AllianceMoon; //Library use App\Library\Moons\MoonCalc; @@ -35,7 +35,7 @@ class MoonsController extends Controller $moons = array(); //Get all of the alliance moons from the database - $moonsTemp = DB::table('AllianceMoons')->orderBy('System', 'asc')->get(); + $moonsTemp = DB::table('alliance_moons')->orderBy('System', 'asc')->get(); //Get the unique systems from the database $systems = AllianceMoons::pluck('System')->toArray(); diff --git a/app/Models/Moon/AllianceMoons.php b/app/Models/Moon/AllianceMoon.php similarity index 94% rename from app/Models/Moon/AllianceMoons.php rename to app/Models/Moon/AllianceMoon.php index 03747db8a..392b49d2d 100644 --- a/app/Models/Moon/AllianceMoons.php +++ b/app/Models/Moon/AllianceMoon.php @@ -4,7 +4,7 @@ namespace App; use Illuminate\Database\Eloquent\Model; -class AllianceMoons extends Model +class AllianceMoon extends Model { // Table Name protected $table = 'alliance_moons';