Skip to content

Commit

Permalink
Add auth and guest blade directives
Browse files Browse the repository at this point in the history
Add new directives launched in Laravel 5.4.29
  • Loading branch information
carusogabriel authored Aug 7, 2017
1 parent f48e387 commit b9f620b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions snippets/language-php.blade.cson
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
'blade-asset-asset':
'prefix': 'asset'
'body': '{!! asset(\'${0:path}\') !!}'

'blade-auth-auth':
'prefix': 'auth'
'body': '@auth (${1:gate})\n\t${2:}\n@endauth$0'

'blade-choice-choice':
'prefix': 'choice'
Expand Down Expand Up @@ -75,6 +79,10 @@
'blade-foreach-forea':
'prefix': 'fea'
'body': '@foreach (${1:\$array} as ${2:\$element})\n\t${3:}\n@endforeach$0'

'blade-guest-guest':
'prefix': 'guest'
'body': '@guest (${1:gate})\n\t${2:}\n@endguest$0'

'blade-if_else-ife':
'prefix': 'ife'
Expand Down

0 comments on commit b9f620b

Please sign in to comment.