Skip to content

Instantly share code, notes, and snippets.

@ekandreas
Created January 6, 2016 16:12
Show Gist options
  • Save ekandreas/fdacad7829a81de89933 to your computer and use it in GitHub Desktop.
Save ekandreas/fdacad7829a81de89933 to your computer and use it in GitHub Desktop.
@for ($i = 0; $i < 10; $i++)
The current value is {{ $i }}
@endfor
@foreach ($users as $user)
<p>This is user {{ $user->id }}</p>
@endforeach
@forelse ($users as $user)
<li>{{ $user->name }}</li>
@empty
<p>No users</p>
@endforelse
@while (true)
<p>I'm looping forever.</p>
@endwhile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment