From 532ba18fc15b0374f9b1987cf3e0328adb904d95 Mon Sep 17 00:00:00 2001 From: Nick Fairchild Date: Sat, 5 Aug 2023 21:17:12 +0100 Subject: [PATCH] fix deleting users fixes using $this when not in object context --- src/Traits/TwoFactorAuthenticatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/TwoFactorAuthenticatable.php b/src/Traits/TwoFactorAuthenticatable.php index fb4855c..bd798bc 100644 --- a/src/Traits/TwoFactorAuthenticatable.php +++ b/src/Traits/TwoFactorAuthenticatable.php @@ -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()