Update UserObserver

This commit is contained in:
Daniel Supernault 2023-01-21 05:34:33 -07:00
parent 6b1f8651fb
commit 796e374040
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -26,6 +26,10 @@ class UserObserver
return;
}
if(Profile::whereUsername($user->username)->exists()) {
return;
}
if (empty($user->profile)) {
$profile = DB::transaction(function() use($user) {
$profile = new Profile();