Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last online #57

Closed
psprokofiev opened this issue May 7, 2019 · 3 comments
Closed

last online #57

psprokofiev opened this issue May 7, 2019 · 3 comments

Comments

@psprokofiev
Copy link

how about to add field lastonline to users ?

@GabrielDeveloper
Copy link
Member

@paulprok I didn't understand, tell me more about this field?

This package has a method that return the latest users online.

@psprokofiev
Copy link
Author

How can I get know when the user was last time online?

@roncodes
Copy link

A bit late but you can easily get the last time the user was online like such

$this->getCachedAt()

I created an attribute on my user model like such

   /**
     * Get the time the user was last seen online
     */
    public function getLastOnlineAttribute() {
        return $this->getCachedAt();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants