Laravel Blade Template 30 Commands

  1. {{ $var }}
  2. {{ $var or 'default' }}
  3. {{{ $var }}}
  4. {{-- Comment --}}
  5. @extends('layout')
  6. @if(condition)
  7. @else
  8. @elseif(condition)
  9. @endif
  10. @foreach($list as $key => $val)
  11. @endforeach
  12. @for($i = 0; $i < 10; $i++)
  13. @endfor
  14. @while(condition)
  15. @endwhile
  16. @unless(condition)
  17. @endunless
  18. @include(file)
  19. @include(file, ['var' => $val,...])
  20. @each('file',$list,'item')
  21. @each('file',$list,'item','empty').
  22. @yield('section').
  23. @show
  24. @lang('message')
  25. @choice('message', $count)
  26. @section('name')
  27. @stop
  28. @endsection
  29. @append
  30. @overwrite

Read more...