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.
Following a process like the Scientific Method can help maintain your sanity during those seemingly hopeless searches for software bugs and broken code.