Git Product home page Git Product logo

laravel-online-users's People

Contributors

thomastkim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-online-users's Issues

Where I have to put exactly the Activity package?

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

Breaks in latest Laravel 5.1 update

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

User 2x

Hey....

I have found a error...

One User is 2x online?

User 2x

No migration file?

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?

Database entry

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

Thanks

Just a quick thanks - this package works really well and has saved me a ton of time!

Duplicates

Hello,

I have two questions.

  1. How do you stop duplicates? If I log in from two different browsers or devices my name show=s twice in online block.

  2. What is guest exactly? My site is private and requires account to access site? yet I see 1000+ guest count?

use Activity Statement has no effect error

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

Laravel 5.2

In Laravel 5.2 I have this error:

Call to undefined method Illuminate\Database\Query\Builder::users()

Have anyone a idea?

Login with another device added one more user.

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

Limit number of authed users

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

Problem

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

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?

Username not displayed?

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?

Error on logout

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.