We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02604e2 commit ee82ee2Copy full SHA for ee82ee2
1 file changed
src/Traits/InteractsWithMobileNumbers.php
@@ -26,7 +26,7 @@ public static function bootInteractsWithMobileNumbers()
26
{
27
static::deleted(function (HasMobileNumber $user) {
28
if (! method_exists($user, 'isForceDeleting') || $user->isForceDeleting()) {
29
- $user->phone->delete();
+ $user->phone?->delete();
30
}
31
});
32
0 commit comments