login controller for inserted at token attribute
This commit is contained in:
@@ -28,11 +28,8 @@ class User extends Authenticatable
|
||||
'character_id',
|
||||
'inserted_at',
|
||||
'expires_in',
|
||||
'access_token',
|
||||
'refresh_token',
|
||||
'access_token',
|
||||
'user_type',
|
||||
'scopes',
|
||||
'role',
|
||||
];
|
||||
|
||||
protected $table = 'users';
|
||||
@@ -57,6 +54,10 @@ class User extends Authenticatable
|
||||
return $this->hasMany('App\Models\Esi\EsiScope', 'character_id');
|
||||
}
|
||||
|
||||
public function userAlts() {
|
||||
return $this->hasMany('App\Models\User\UserAlt', 'character_id', 'main_id');
|
||||
}
|
||||
|
||||
public function hasPermission($permission) {
|
||||
$found = UserPermission::where(['character_id' => $this->character_id, 'permission' => $permission])->get(['permission']);
|
||||
foreach($found as $foo) {
|
||||
|
||||
Reference in New Issue
Block a user