npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

laravel-blade

v1.24.0

Published

Laravel blade snippets and syntax highlight support

Downloads

13

Readme

Laravel Blade Snippets

Laravel blade snippets and syntax highlight support for Visual Studio Code.

Suggest Laravel related extension: Laravel Snippets

Screenshot

Demo

User Settings

Open Preferences -> Settings

"emmet.triggerExpansionOnTab": true, // enable tab to expanse emmet tags
"blade.format.enable": true,         // if you would like to enable blade format

Specific settings for blade language

"[blade]": {
    "editor.autoClosingBrackets": "always"
},

Features

  • Blade syntax highlight
  • Blade snippets
  • Emmet works in blade template
  • Blade formatting

Blade Syntax Hightlight

  • Auto detected with .blade.php extension
  • Manually switch language mode to Blade (Ctrl + K, M or ⌘ + K, M)

Laravel Blade Snippets

| Trigger | Snippet | |----------------|---------------------------------| | b:extends | @extends | | b:yield | @yield | | b:section | @section...@endsection | | b:section-show | @section...@show | | b:if | @if...@endif | | b:if-else | @if...@else...@endif | | b:unless | @unless...@endunless | | b:has-section | @hasSection...@else...@endif | | b:for | @for...@endfor | | b:foreach | @foreach...@endforeach | | b:forelse | @forelse...@empty...@endforelse | | b:while | @while...@endwhile | | b:each | @each | | b:push | @push...@endpush | | b:stack | @stack | | b:inject | @inject | | b:comment | {{-- comment --}} (Ctrl + / or ⌘ + /) | | b:echo | {{ $data }} | | b:echo-html | {!! $html !!} | | b:echo-raw | @{{ variable }} | | b:can | @can...@endcan (v5.1) | | b:can-elsecan | @can...@elsecan...@endcan (v5.1)| | b:cannot | @cannot...@endcannot (v5.3) | | b:cannot-elsecannot | @cannot...@elsecannot...@endcannot (v5.3) | | b:verbatim | @verbatim...@endverbatim (v5.3)| | b:php | @php...@endphp (v5.3) | | b:includeIf | @includeIf (v5.3) | | b:includeWhen | @includeWhen (v5.4) | | b:includeFirst | @includeFirst (v5.5) | | b:includeUnless| @includeUnless (v6.x) | | b:component | @component...@endcomponent (v5.4)| | b:slot | @slot...@endslot (v5.4) | | b:isset | @isset...@endisset (v5.4) | | b:empty | @empty...@endempty (v5.4) | | b:auth | @auth...@endauth (v5.5) | | b:guest | @guest...@endguest (v5.5) | | b:switch | @switch...@case...@endswitch (v5.5) | | b:lang | @lang | | b:csrf | @csrf (v5.6) | | b:method | @method(...) (v5.6) | | b:dump | @dump(...) (v5.6) | | b:error | @error...@enderror (v5.8) | | b:props | @props (v7.4) | | b:production | @production...@endproduction | | b:env | @env...@endenv |

$loop variable (Laravel v5.3+)

| Trigger | Snippet | |----------------|---------------------------------| | b:loop | $loop->(index,remaining,count,first,last,depth,parent) | | b:loop-first | @if($loop->first)...@endif | | b:loop-last | @if($loop->last)...@endif |

Laravel Helper Snippets for Blade

| Trigger | Laravel Helper | |-----------------|---------------------------------| | lv:elixir | elixir() - deprecated | | lv:mix | mix() (v5.4) | | lv:trans | trans() | | lv:action | action() | | lv:secure-asset | secure_asset() | | lv:url | url() | | lv:asset | asset() | | lv:route | route() | | lv:csrf-field | csrf_field() | | lv:csrf-token | csrf_token() | | lv:pagination-links | $collection->links() |

Blade extensions (register in the boot method of ServiceProvider)

  • Blade::component
  • Blade::include
  • Blade::if
  • Blade::directive

Contact

Please file any issues or have a suggestion please tweet me @onecentlin.

Credits

License

Please read License for more information