Loading app/Character.php +2 −2 Original line number Diff line number Diff line Loading @@ -19,10 +19,10 @@ class Character extends Model { $player = Player::where('session_id', '=', $_SERVER['HTTP_SESSION_ID'])->first(); if ($player->currency_id) { if ($player->language) { return $this->hasMany(Modifier::class, 'model_id') ->where('model', '=', 'character') ->where('currency_id', '=', $player->currency_id); ->where('currency_id', '=', $player->language->currency_id); } else { $default_currency = Currency::where('currency_code', 'EUR')->firstOrFail(); return $this->hasMany(Modifier::class, 'model_id') Loading Loading
app/Character.php +2 −2 Original line number Diff line number Diff line Loading @@ -19,10 +19,10 @@ class Character extends Model { $player = Player::where('session_id', '=', $_SERVER['HTTP_SESSION_ID'])->first(); if ($player->currency_id) { if ($player->language) { return $this->hasMany(Modifier::class, 'model_id') ->where('model', '=', 'character') ->where('currency_id', '=', $player->currency_id); ->where('currency_id', '=', $player->language->currency_id); } else { $default_currency = Currency::where('currency_code', 'EUR')->firstOrFail(); return $this->hasMany(Modifier::class, 'model_id') Loading