thomastkim / laravel-online-users Goto Github PK
View Code? Open in Web Editor NEWEasily retrieve a list of users and guests that are online.
License: MIT License
Easily retrieve a list of users and guests that are online.
License: MIT License
Hey,
I just found your awesome package and I immediately try to install.
But I got a fatal error, said: "Class 'Kim\Activity\ActivityServiceProvider' not found"
I have tried put the package in different places, run composer dump-autoload, but the error is the same.
Could you help me please in this issue?
Thank you,
Attila
Getting this error after updating to Laravel framework 5.1.40
Missing argument 3 for Illuminate\Session\DatabaseSessionHandler::__construct(), called in D:\wamp\www\b4d\vendor\kim\activity\src\Kim\Activity\ActivityServiceProvider.php on line 50 and defined
I have followed the instructions, but when trying to call the migrate function for the sessions table, it just says 'nothing to migrate'. Running Laravel 5.2.
So when trying to use it at all, the site is down because the 'sessions' table is non-existent. Any ideas?
That way we can tweak and broadcast an event to a dashboard.
i have added this API to my project but how can the data will be seeded to the sessions table as there is no sign that how the user_id and activity is monitor. please help me with that. All the time is gives me zero. because there is no entry in sessions table
Just a quick thanks - this package works really well and has saved me a ton of time!
Will this work?
Hello,
I have two questions.
How do you stop duplicates? If I log in from two different browsers or devices my name show=s twice in online block.
What is guest exactly? My site is private and requires account to access site? yet I see 1000+ guest count?
Thanks for the package but I seem to have a problem which is when I add the "use Activity" statement at the top on my web.php file it returns "use Activity has no effect" error
Not an issue, just a question.
In Laravel 5.2 I have this error:
Call to undefined method Illuminate\Database\Query\Builder::users()
Have anyone a idea?
if i have user collection
$followers = User::whatEver();
how can know user activity like
$activityFollowers = $followers->activity();
Hello,
First thank you for this package! Nice job.
Today i found problem. If i use 2 browsers with same user i get 2 users in Activity::usersByHours($hour)->get()
I have solution for this problem but maybe you found better fix.
My fix is :
public static function getUsersByHours($hour) { $activity = Activity::usersByHours($hour)->get(); $users = []; for ($i = 0; $i <= count($activity) - 1; $i++) { $users[$activity[$i]->user->id]['id'] = $activity[$i]->user->id; $users[$activity[$i]->user->id]['poster'] = $activity[$i]->user->poster; } return $users; }
Regard
Hello,
Is there any way to limit the number of Authed users that we will show ? There is the foreach but can we limit the get() to for exemple 5 users ?
Thank you
Hey! When I write this on my site:
// Import at the top
use Activity;
// Find latest users
$activities = Activity::users()->get();
// Loop through and echo user's name
foreach ($activities->users as $user) {
echo $user->name . '
';
}
I became this error:
ErrorException in b75221df64d6887b27b0b34867838817 line 26:
The use statement with non-compound name 'Activity' has no effect (View: /var/www/html/resources/views/startsite/startsite.blade.php)
Can anyone help me? Thanks!
How can i distinguish sessions in the database if i have more than one guard?
Per example if i have admin and user with different tables and have same id i will face problem because the user with id 1 will be shown as online if the admin with id 1 is online.
Is there a way to add the guard to the session table?
When I use the following:
// Import at the top
use Activity;
// Find latest users
$activities = Activity::users()->get();
// Loop through and echo user's name
foreach ($activities as $activity) {
echo $activity->user->name . '
';
}
and {!! $activity !!} in my blade view It displays all info in the session table and not a username. What am I doing wrong?
I have an error on logout
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to a member function pullCache() on null
public function handle($event) { $event->user->pullCache(); }
I use this extension https://github.com/z-song/laravel-admin
Is there a way to find if the user is currently active (within say 10 mins)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.