Chrisbjr\ApiGuard\Providers\Auth\October::byId PHP Method

byId() public method

Authenticate a user via the id.
public byId ( mixed $id ) : boolean
$id mixed
return boolean
    public function byId($id)
    {
        if (!is_null($user = $this->october->findUserById($id))) {
            $this->october->setUser($user);
            return true;
        }
        return false;
    }