1
0
Fork 0

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
1 changed files with 4 additions and 0 deletions

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();