relationships for local key and foreign key in UserRole relationship
This commit is contained in:
@@ -13,6 +13,6 @@ class UserRole extends Model
|
||||
public $timestamps = true;
|
||||
|
||||
public function user() {
|
||||
return $this->belongsTo('App\User');
|
||||
return $this->belongsTo('App\User', 'character_id', 'user_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user