I am new to Laravel. It seems like in default setting, the following code
@foreach($foo as $bar)
<div>
would generate 8 white spaces before the div in actual final html code.
I want to know is there a way to ignore the 4 spaces before the @foreach and only use the 4 spaces before the div?
A related but different question: Laravel Blade comment before "@if" In this question the author seems to do what I am doing right now, which is essentially leave no space before the @foreach but the drawback is the source code looks ugly. Ideally there should be a way to make the code look nice while also not affecting the final output.