diff --git a/app/Http/Controllers/Api/LoginController.php b/app/Http/Controllers/Api/LoginController.php index d0bf55a..e0ccfd0 100644 --- a/app/Http/Controllers/Api/LoginController.php +++ b/app/Http/Controllers/Api/LoginController.php @@ -41,7 +41,7 @@ class LoginController extends Controller $user = $user = User::where("email", "=", $userProvider->email)->first(); if (isset($user)) { - $userCreated = User::firstOrCreate( + $userCreated = User::updateOrCreate( [ 'email' => $userProvider->email ],