Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aryehraber authored Jun 18, 2024
1 parent b1b10f5 commit 81c7295
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,22 @@ class MyCustomShouldVerify implements CustomShouldVerify
}

// bypass verification based on event form submission
if ($event instanceof FormSubmitted) {
if ($event instanceof \Statamic\Events\FormSubmitted) {
// return $event->submission;
}

// bypass verification based on login event
if ($event instanceof Login) {
if ($event instanceof \Illuminate\Auth\Events\Login) {
// return $event->user;
}

// bypass verification based on user registration event
if ($event instanceof UserRegistering) {
if ($event instanceof \Statamic\Events\UserRegistering) {
// return $event->user;
}

// bypass verification based on entry saving event
if ($event instanceof EntrySaving) {
if ($event instanceof \Statamic\Events\EntrySaving) {
// return $event->entry;
}
}
Expand Down

0 comments on commit 81c7295

Please sign in to comment.