Skip to content

Instantly share code, notes, and snippets.

@mpmont
Created September 5, 2012 15:22
Show Gist options
  • Save mpmont/3638317 to your computer and use it in GitHub Desktop.
Save mpmont/3638317 to your computer and use it in GitHub Desktop.
blade template system example
@if ( $message == 'success' )
It was a success!
@elseif ( $message == 'error' )
An error occurred.
@else
Did it work?
@endif
@foreach ($comments as $comment)
The comment body is {{ $comment->body }}.
@endforeach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment