alliance moons spreadsheet conversion to services
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
public function getUserType() {
|
||||
return User::where('user_type')->get();
|
||||
return $this->user_type;
|
||||
}
|
||||
|
||||
public function getRole() {
|
||||
|
||||
Reference in New Issue
Block a user