Guest User

Untitled

a guest
Nov 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. {!! $html !!} - Outputs HTML
  2. {{ $var }} - Echo content
  3. {{ $var or 'default' }} - Echo content with a default value
  4. {{{ $var }}} - Echo escaped content
  5. {{-- Comment --}} - A Blade comment
  6. @extends('layout') - Extends a template with a layout
  7. @if(condition) - Starts an if block
  8. @else - Starts an else block
  9. @elseif(condition) - Start a elseif block
  10. @endif - Ends a if block
  11. @foreach($list as $key => $val) - Starts a foreach block
  12. @endforeach - Ends a foreach block
  13. @for($i = 0; $i < 10; $i++) - Starts a for block
  14. @endfor - Ends a for block
  15. @while(condition) - Starts a while block
  16. @endwhile - Ends a while block
  17. @unless(condition) - Starts an unless block
  18. @endunless - Ends an unless block
  19. @include(file) - Includes another template
  20. @include(file, ['var' => $val,...]) - Includes a template, passing new variables.
  21. @each('file',$list,'item') - Renders a template on a collection
  22. @each('file',$list,'item','empty') - Renders a template on a collection or a different template if collection is empty.
  23. @yield('section') - Yields content of a section.
  24. @show - Ends section and yields its content
  25. @lang('message') - Outputs message from translation table
  26. @choice('message', $count) - Outputs message with language pluralization
  27. @section('name') - Starts a section
  28. @stop - Ends section
  29. @endsection - Ends section
  30. @append - Ends section and appends it to existing of section of same name
  31. @overwrite - Ends section, overwriting previous section of same name
Add Comment
Please, Sign In to add comment