In addition to my suggestion: if we will use $_SERVER['HTTP_USER_AGENT'], we must have an array of tokens in "remeber_token" field in database, cause user can have many devices to authentificate with.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.