moons controller

This commit is contained in:
2020-02-23 20:29:11 -06:00
parent e36348b039
commit 67c864a357
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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';