mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-02 21:44:29 +02:00
update
This commit is contained in:
parent
e53a643e3d
commit
1ab37bd478
209 changed files with 79957 additions and 0 deletions
62
my-snippets/laravel-blade/snippets/helpers.json
Normal file
62
my-snippets/laravel-blade/snippets/helpers.json
Normal file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
/* Paths */
|
||||
"Path-elixir": {
|
||||
"prefix": "lv:elixir",
|
||||
"body": "{{ elixir('${1:file}') }}",
|
||||
"description": "(deprecated) elixir path"
|
||||
},
|
||||
"Path-mix": {
|
||||
"prefix": "lv:mix",
|
||||
"body": "{{ mix('${1:file}') }}",
|
||||
"description": "mix path"
|
||||
},
|
||||
/* Strings */
|
||||
"String-trans": {
|
||||
"prefix": "lv:trans",
|
||||
"body": "{{ trans('$1') }}",
|
||||
"description": "trans"
|
||||
},
|
||||
/* URLs */
|
||||
"URL-action": {
|
||||
"prefix": "lv:action",
|
||||
"body": "{{ action('${1:ControllerName}', [${2:'id'=>1}]) }}",
|
||||
"description": "URL-action"
|
||||
},
|
||||
"URL-secure-asset": {
|
||||
"prefix": "lv:secure-asset",
|
||||
"body": "{{ secure_asset('$1', ${2:\\$title}, ${3:\\$attributes=[]}) }}",
|
||||
"description": "URL-secure-asset"
|
||||
},
|
||||
"URL-url": {
|
||||
"prefix": "lv:url",
|
||||
"body": "{{ url('${1:url}', [$2]) }}",
|
||||
"description": "URL-url"
|
||||
},
|
||||
"URL-asset": {
|
||||
"prefix": "lv:asset",
|
||||
"body": "{{ asset('$1') }}",
|
||||
"description": "URL-asset"
|
||||
},
|
||||
"URL-route": {
|
||||
"prefix": "lv:route",
|
||||
"body": "{{ route('${1:routeName}', [${2:'id'=>1}]) }}",
|
||||
"description": "URL-route"
|
||||
},
|
||||
/* Miscellaneous */
|
||||
"Form-csrf-field": {
|
||||
"prefix": "lv:csrf-field",
|
||||
"body": "{{ csrf_field() }}",
|
||||
"description": "CSRF hidden field"
|
||||
},
|
||||
"csrf-token": {
|
||||
"prefix": "lv:csrf-token",
|
||||
"body": "{{ csrf_token() }}",
|
||||
"description": "CSRF token"
|
||||
},
|
||||
/* Paginate */
|
||||
"Paginate-links": {
|
||||
"prefix": "lv:pagination-links",
|
||||
"body": "{{ \\$${1:collection}->links() }}",
|
||||
"description": "pagination links"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue