In my blade code, I need a counter, to give divs that are rendered by a foreach loop unique id's. For that purpose I created a variable in my blade template like this:

```
{{ $counter = 0 }}

```

I use it in the html by just outputting it with `{{ $counter = 0 }}`

and the later on, I increment it like this: `{{ $counter++ }}`

It all works like a charm, except that at `{{ $counter++ }}` it's not only incrementing the variable, it's also outputting it to the view.

is there any way to prevent this?