for loop - Laravel 4 - Enumerating @foreach -


I want to enter some material into @foreach I want something like this:

  1 - First Data 2 - Second Data ...  

I've used @forchha using an email, but I need to calculate this with the combination of @forac Have tried with @, but he has not worked for me ... does anyone know this?

Thank you in advance!

  & lt ;? Php $ i = 1; ? & Gt; @foreach (collection as $ item) & lt; P & gt; {{$ I}} - {{$ item- & gt; Property}} & lt; / P & gt; & Lt ;? Php $ i ++; ? & Gt; @ Xraynecha  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -