Commit b3453b8c authored by Jack Stupple's avatar Jack Stupple

store the platform information as the user agent, it has version and OS

parent 32c58be6
......@@ -35,7 +35,7 @@ class PlayerController extends Controller
}
$player = new Player();
$player->user_agent = $request->server('HTTP_USER_AGENT');
$player->user_agent = json_encode($request->input('platform')); // $request->server('HTTP_USER_AGENT'); # deemed unreliable as it's always going to be managing money or expo
$player->session_id = str_random(32);
$player->save();
......
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