roles stuff

This commit is contained in:
2018-11-05 22:01:39 -06:00
parent 8e01a590ae
commit c4dab984b0
2 changed files with 3 additions and 3 deletions

View File

@@ -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');
}
}

View File

@@ -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');
}
}