Laravel returning a leading \n character on responses
<p>Every response from my Laravel application seems to be getting prepend with a <code>\n</code> character, even when all I return is a number.</p>

<p>It feels like I have to have introduced this as a bug, but I can't find anywhere where I might have done that. I see I have some other applications I've built in Laravel that have this as well (but others that don't) so after pulling my hair out I thought I'd check and see if this something others have experienced.</p>

<p>The issue is that I'm trying to return an ID and use it but it has this leading character.  I could strip it client side, but would rather fix the root issue.</p>

<p>ETA:
This route:</p>

<pre><code>Route::get('/test', function(){
    return 'hello world';
});
</code></pre>

<p>Produces this response:</p>

<p><a href="https://i.stack.imgur.com/ba5lb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ba5lb.png" alt="screen shot with extra line"></a></p>

<p>It's not an issue for HTML of course, but when I try to assign it as an id, I'm getting "\n 234".</p>