How to hide .env passwords in Laravel whoops output? : <p>How can I hide my passwords and other sensitive environment variables on-screen in Laravel's whoops output?</p>

<p>Sometimes other people are looking at my development work. I don't want them to see these secrets if an exception is thrown, but I also don't want to have to keep toggling debug on and off, or spin up a dedicated site just for a quick preview.</p>

<p><a href="https://i.stack.imgur.com/A9vD6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/A9vD6.png" alt="whoops output screenshot with passwords shown"></a></p>
