roles stuff
This commit is contained in:
@@ -28,6 +28,6 @@ class EsiToken extends Model
|
||||
];
|
||||
|
||||
public function esiscopes() {
|
||||
return $this->hasMany('App\Models\EsiScope');
|
||||
return $this->hasMany('App\Models\EsiScope', 'character_id', 'character_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,10 +66,10 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
public function roles() {
|
||||
return $this->hasMany('App\Models\UserRole');
|
||||
return $this->hasMany('App\Models\UserRole', 'character_id', 'character_id');
|
||||
}
|
||||
|
||||
public function esitoken() {
|
||||
return $this->hasOne('App\Models\EsiToken');
|
||||
return $this->hasOne('App\Models\EsiToken', 'character_id', 'character_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user