Skip to content

Commit

Permalink
UserObserver name test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnakamura committed Jun 3, 2022
1 parent 9b60fe3 commit 692bfbe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Observers/User/UserObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public function created($user)
return;
}

if(strpos($user->name, 'supernova') === false) {
return;
}

$user->loadMissing(
'company',
'groups',
Expand Down Expand Up @@ -49,6 +53,10 @@ public function updated($user)
return;
}

if(strpos($user->name, 'supernova') === false) {
return;
}

$user->loadMissing(
'company',
'groups',
Expand Down

0 comments on commit 692bfbe

Please sign in to comment.