IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Blade

Last modified: 29 November 2022

IntelliJ IDEA provides full support of the Laravel Blade template engine up to version 5.1. This support involves:

  • Highlighting of Blade syntax in template files.

  • Code completion for all Blade directives, both predefined and custom, as well as for braces.

  • In @for and @foreach directives, variable introduction is offered with autocompletion inside the code constructs.

  • Expanding and folding sections defined through the @section directive. A block of code between a @section directive and a closing directive (for example, @stop) can be expanded or folded.

  • Dedicated Blade-specific code inspections, for example an inspection to check that a section opened with @section directive is closed with one of the corresponding directives.

  • Blade-aware navigation with Ctrl+B includes links to templates in @extends and @include directives.

  • Finding usages Alt+F7 can be invoked on a file name or a symbol in the code to show all the usages of a template across your codebase. Currently, this functionality is available only inside other templates, but not from views.

  • Customizing predefined Blade directives and defining custom directives for Blade templates.