Commit 4abce408 authored by Jack Stupple's avatar Jack Stupple

allow update of currency_id

parent ccf14471
......@@ -47,6 +47,7 @@ class PlayerController extends Controller
$this->validate($request, [
'character_id' => 'nullable|numeric|exists:characters,id',
'language_id' => 'nullable|numeric|exists:languages,id',
'currency_id' => 'nullable|numeric|exists:currencies,id',
'budget_intro_completed' => 'nullable',
'calendar_intro_completed' => 'nullable'
]);
......@@ -70,6 +71,7 @@ class PlayerController extends Controller
$previous_character = $player->character_id;
$player->character_id = $request->input('character_id', $player->character_id);
$player->language_id = $request->input('language_id', $player->language_id);
$player->currency_id = $request->input('currency_id', $player->currency_id);
$player->budget_intro_completed = $budget_intro_completed;
$player->calendar_intro_completed = $calendar_intro_completed;
$player->user_agent = json_encode($request->input('user_agent', json_decode($player->user_agent)));
......
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