Skip to content

UserUtils::getUserId() Fails When Using UUID as User ID #54

Closed
@itutu-media

Description

@itutu-media

Image

I found a bug in this package, specifically in the Binafy\LaravelUserMonitoring\Utills\UserUtils::getUserId() method. The issue occurs when the User model uses a UUID as the primary key instead of an integer.

Please update, as soon as possible, the return type of getUserId() to string|int|null to support both UUIDs and integers.

Environment:

Laravel Version: 11.44.1
PHP Version: 8.3.16
Package Version: 1.2.0 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions