
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)