private function getOnlineUsers()
    {
        $date = Carbon::now()->subMinutes(
            config('arcanesoft.auth.track-activity.minutes', 5)
        );

        return $this->getCachedUsers()->filter(function (User $user) use ($date) {
            return ! is_null($user->last_activity) && $user->last_activity->gte($date);
        });
    }
private function getOnlineUsers()
    {
        $date = Carbon::now()->subMinutes(
            config('arcanesoft.auth.track-activity.minutes', 5)
        );

        return $this->getCachedUsers()->filter(function (User $user) use ($date) {
            return ! is_null($user->last_activity) && $user->last_activity->gte($date);
        });
    }
private function getOnlineUsers ( ) { $ date = Carbon :: now ( ) -> subMinutes ( config ( 'arcanesoft.auth.track-activity.minutes' , 5 ) ) ; return $ this -> getCachedUsers ( ) -> filter ( function ( User $ user ) use ( $ date ) { return ! is_null ( $ user -> last_activity ) && $ user -> last_activity -> gte ( $ date ) ; } ) ; }
Get the online users.

@return \Illuminate\Database\Eloquent\Collection
Get the online users .