Skip to content

Commit

Permalink
fix deleting users
Browse files Browse the repository at this point in the history
fixes using $this when not in object context
  • Loading branch information
nickfairchild committed Aug 5, 2023
1 parent b6bab03 commit 532ba18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/TwoFactorAuthenticatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait TwoFactorAuthenticatable
public static function bootTwoFactorAuthenticatable()
{
static::deleting(function ($model) {
$this->breezySessions()->get()->each->delete();
$model->breezySessions()->get()->each->delete();
});
}
public function initializeTwoFactorAuthenticatable()
Expand Down

0 comments on commit 532ba18

Please sign in to comment.