Skip to content

Commit ee82ee2

Browse files
committed
fix
1 parent 02604e2 commit ee82ee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Traits/InteractsWithMobileNumbers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function bootInteractsWithMobileNumbers()
2626
{
2727
static::deleted(function (HasMobileNumber $user) {
2828
if (! method_exists($user, 'isForceDeleting') || $user->isForceDeleting()) {
29-
$user->phone->delete();
29+
$user->phone?->delete();
3030
}
3131
});
3232
}

0 commit comments

Comments
 (0)