Commit fce268f1 authored by Jack Stupple's avatar Jack Stupple

answers get modifiers for the selected currency

parent 033d2ac9
......@@ -19,7 +19,10 @@ class Answer extends Model
public function modifiers()
return $this->hasMany(\App\Modifier::class, 'model_id')->where('model', '=', 'answer');
$selected_currency = Player::select('currency_id')->where('session_id', '=', $_SERVER['HTTP_SESSION_ID'])->firstOrFail();
return $this->hasMany(\App\Modifier::class, 'model_id')
->where('model', '=', 'answer')
->where('currency_id', '=', $selected_currency);
public function resourceCategories()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment