Created
          October 1, 2017 14:57 
        
      - 
      
 - 
        
Save JuanVqz/e771a7dbf36f4bcb866d464efc8e28ac to your computer and use it in GitHub Desktop.  
    vim-blade-snippets
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | extends html | |
| snippet foreach "@foreach" | |
| @foreach ($${1:array} as $${2:item}) | |
| {{ $$2->${3} }} | |
| @endforeach | |
| snippet if "@if" | |
| @if (${1:true}) | |
| ${2:tag} | |
| @endif | |
| snippet ife "@if @else" | |
| @if (${1:true}) | |
| ${2} | |
| @else | |
| ${3} | |
| @endif | |
| snippet extends "@extends" | |
| @extends('${1:layouts.app}') | |
| ${2} | |
| snippet section "@section" | |
| @section('${1:content}') | |
| ${2} | |
| @endsection | |
| snippet include "@include" | |
| @include('${1:layouts.partials}', ${2:[]}) | |
| ${3} | |
| snippet component "@component" | |
| @component('${1:components.panel}' ${2:, []}) | |
| ${3} | |
| @endcomponent | |
| snippet slot "@slot" | |
| @slot('${1:footer}') | |
| ${2} | |
| @endslot | |
| snippet !! "{!! !!}" | |
| {!! ${1} !!} | |
| snippet {{ "{{ }}" | |
| {{ ${1} }} | |
| snippet @{{ "@{{ }}" | |
| @{{ ${1} }} | |
| snippet route "{{ route('name') }}" | |
| {{ route('${1}') }} | |
| snippet asset "{{ asset('path') }}" | |
| {{ asset('${1}') }} | |
| snippet url "{{ url('path') }}" | |
| {{ url('${1}') }} | |
| snippet config "{{ config('app.name') }}" | |
| {{ config('${1}') }} | |
| snippet -- "{{-- comment --}}" | |
| {{-- ${1} --}} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment