It sounds like you are trying to use the Laravel session, but it is not available in the current request.