changed models

This commit is contained in:
2018-10-26 22:36:13 -05:00
parent dab3420ff5
commit adf109a0b0
15 changed files with 108 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Config extends Model
{
// Table Name
protected $table = 'Config';
// Timestamps
public $timestamps = 'false';
}
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ItemComposition extends Model
{
// Table Name
protected $table = 'ItemComposition';
// Timestamps
public $timestamps = 'false';
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Moon extends Model
{
// Table Name
protected $table = 'Moons';
//Primary Key
public $primaryKey = 'id';
// Timestamps
public $timestamps = 'false';
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class OrePrice extends Model
{
// Table Name
protected $table = 'OrePrices';
//Primary Key
public $primaryKey = 'id';
// Timestamps
public $timestamps = 'false';
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Price extends Model
{
// Table Name
protected $table = 'Prices';
//Primary Key
public $primaryKey = 'id';
// Timestamps
public $timestamps = 'false';
}
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'avatar', 'owner_hash', 'character_id', 'expires_in', 'access_token', 'refresh_token', 'user_type',
];
protected $table = 'users';
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
protected $guarded = [];
}