diff --git a/app/Models/User.php b/app/Models/User.php index ae01551..0dd5b61 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -60,7 +60,8 @@ class User extends Authenticatable public function alt_characters() { - $relation = $this->characters(); + $relation = $this->hasMany(Character::class); + if ($this->character_id) { $relation->where('id', '!=', $this->character_id); }