diff --git a/src/Storage.php b/src/Storage.php index c5c26c9..58ad6a9 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -356,7 +356,10 @@ class Storage implements */ public function getUserDetails($username) { - return User::where('username', $username)->first(); + $user = User::where('username', $username)->first(); + $user->user_id = $user->id; + + return $user; } /**