My development team's project is currently using Contentful to manage site content. One hiccup we had to deal with is dynamically creating anchor tags.
It took a bit to find the best way to console log while running php in Valet. Here are a couple of techniques that helped me debug locally with PHP Laravel.