Skip to content

Instantly share code, notes, and snippets.

@DjakaTechnology
Created March 11, 2019 12:30
Show Gist options
  • Save DjakaTechnology/57966a4c04191d9228fe6a1cb96f06b4 to your computer and use it in GitHub Desktop.
Save DjakaTechnology/57966a4c04191d9228fe6a1cb96f06b4 to your computer and use it in GitHub Desktop.
try{
$device = new DeviceKey();
$device->user_id = $user->id;
$device->device_key = request('device_key');
$device->save();
}catch(QueryException $e){}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment