Added debug logging to the Laravel implementation.