alliance moons spreadsheet conversion to services

This commit is contained in:
2020-01-31 00:07:31 -06:00
parent 2e396f4ec7
commit a52d0453bb
11 changed files with 161 additions and 13 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class AllianceMoons extends Model
{
// Table Name
protected $table = 'alliance_moons';
//Primary Key
public $primaryKey = 'id';
//Timestamps
public $timestamps = false;
/**
* The fillable items for each entry
*
* @var array
*/
protected $fillable = [
'Region',
'System',
'Planet',
'Moon',
'Corporation',
'FirstOre',
'FirstQuantity',
'SecondOre',
'SecondQuantity',
'ThirdOre',
'ThirdQuantity',
'FourthOre',
'FourthQuantity',
'Available',
];
}
+1 -1
View File
@@ -109,7 +109,7 @@ class User extends Authenticatable
}
public function getUserType() {
return User::where('user_type')->get();
return $this->user_type;
}
public function getRole() {