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