title: Prevent Observer from firing on log out
body: <p>I needed a way to send an email anytime a user updates their profile info (name, email, phone, address etc...) on the website.</p>
  <p>Everything is working great except for this.</p>
  <blockquote>
  <p>Observer action is being called when user logs out.</p>
  </blockquote>
  <p>When the user logs out the UserObserver sends the email that the account has been updated.</p>
  <p>How can I prevent this from happening?</p>
  <p>It looks like my <code>remember_token</code> on the users table changes every time I log out. Is there a way to exclude that from the Observer? That's the only thing I can see that could be causing the issue.</p>
  <p>Here is the Observer:</p>
  <pre><code> public function updating(User $user)
      {
          $current_name    = $user-&gt;fullName();
          
          if ($user-&gt;isDirty(['first_name'])) {
              // first name has changed
              $new_first_name = $user-&gt;first_name;
              $old_first_name = $user-&gt;getOriginal('first_name');
          }
          //....etc...
          Mail::to('xxx@xxx.com')
                  -&gt;send(new UserInfoUpdated(
                          $current_name,
                          $new_first_name ?? null,
                          $old_first_name ?? null,
                  ));
      }
  </code></pre>
  <p>I'm using Laravel 8 and Php 7.4</p>