Update UserObserver

pull/4109/head
Daniel Supernault 2 years ago
parent 6b1f8651fb
commit 796e374040
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save