id === $oauthConnection->user_id; } /** * Determine whether the user can delete the model. */ public function delete(User $user, OAuthConnection $oauthConnection): bool { return $user->id === $oauthConnection->user_id && $user->password !== null; } }