cleaned up models which are no longer utilized
This commit is contained in:
@@ -17,6 +17,11 @@ class User extends Authenticatable
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
/**
|
||||
* Database Table
|
||||
*/
|
||||
protected $table = 'users';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
@@ -29,12 +34,11 @@ class User extends Authenticatable
|
||||
'owner_hash',
|
||||
'character_id',
|
||||
'inserted_at',
|
||||
'expires_in',
|
||||
'access_token',
|
||||
'expires_in',
|
||||
'user_type',
|
||||
];
|
||||
|
||||
protected $table = 'users';
|
||||
|
||||
|
||||
public function role() {
|
||||
return $this->hasOne('\App\Models\User\UserRole', 'character_id', 'character_id');
|
||||
@@ -120,18 +124,6 @@ class User extends Authenticatable
|
||||
return $role->role;
|
||||
}
|
||||
|
||||
public function isMoonRenter() {
|
||||
$moonRental = AllianceRentalMoon::where([
|
||||
'rental_contact_id' => $this->character_id,
|
||||
])->first();
|
||||
|
||||
if($moonRental != null) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function srpOpen() {
|
||||
return SRPShip::where([
|
||||
'character_id' => $this->character_id,
|
||||
|
||||
Reference in New Issue
Block a user