Created
March 11, 2019 12:30
-
-
Save DjakaTechnology/57966a4c04191d9228fe6a1cb96f06b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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