Skip to content

Commit

Permalink
Merge pull request #8 from gabriel-caruso/patch-1
Browse files Browse the repository at this point in the history
Add auth and guest blade directives
  • Loading branch information
slayerfat authored Aug 9, 2017
2 parents f48e387 + b9f620b commit 49420b7
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 49420b7

Please sign in to comment.