Skip to content

Instantly share code, notes, and snippets.

@bgaze
Last active March 8, 2023 14:14
Show Gist options
  • Save bgaze/1f559782c85511dc2671cdb6b453f0c6 to your computer and use it in GitHub Desktop.
Save bgaze/1f559782c85511dc2671cdb6b453f0c6 to your computer and use it in GitHub Desktop.

Blade helpers for PhpStorm

Installation

Syntax highlighting

Sadly, PhpStorm's Blade plugin doesn't allow defining custom directives globally, they must be redefined for each project and I didn't find a way to bypass that.

While waiting for plugin improvements, the easiest way to import them is to download the file blade.xml in your project .idea directory then restart IDE.

cd path/to/project/.idea
wget https://gist.githubusercontent.com/bgaze/1f559782c85511dc2671cdb6b453f0c6/raw/blade.xml

If this file already exists and has a not empty directives node, do not overwrite it or you'll loose any prior customization.
Just edit it and add to directives node the CUSTOM DIRECTIVES block of this gist.

Live templates

Hopefully, live templates on their side can be easily defined globally.
Simply download blade-bootstrap-form.xml and/or blade-default.xml files to the templates folder in your PhpStorm config directory then restart IDE.

cd ~/.config/JetBrains/PhpStorm2020.3/templates/
wget https://gist.githubusercontent.com/bgaze/1f559782c85511dc2671cdb6b453f0c6/raw/blade-bootstrap-form.xml
wget https://gist.githubusercontent.com/bgaze/1f559782c85511dc2671cdb6b453f0c6/raw/blade-default.xml

Provided live templates

Bootstrap Form directives

Shortcut Description Mnemonic
bfo Insert a Bootstrap form (open, vertical, horizontal, inline) Bootstrap Form Open
bft Insert a Bootstrap common input (text, email, url, tel, number, date, time, color, textarea, range) Bootstrap Form Text
bfp Insert a Bootstrap password input Bootstrap Form Password
bfs Insert a Bootstrap selectable input (select, checkboxes, radios) Bootstrap Form Selectable
bfc Insert a Bootstrap checkable input (checkbox, radio) Bootstrap Form Checkable
bff Insert a Bootstrap file input Bootstrap Form File
bfh Insert a hidden input Bootstrap Form Hidden
bfl Insert a label tag Bootstrap Form Label
bfb Insert a Bootstrap button Bootstrap Form Button
bfa Insert a Bootstrap link button Bootstrap Form Anchor

Blade's default directives

Shortcut Description Mnemonic
bv Insert a Blade content tag {{ }} Blade Value
be Insert a Blade raw tag {!! !!} Blade Escape
bc Insert a Blade comment {-- --} Blade Comment
bi Insert a Blade @if condition Blade If
bie Insert a Blade @if-@else condition Blade IElse
bs Insert a Blade @xxx-@endxxx block Blade Section
bfv Insert a simple Blade @foreach loop Blade Foreach Value
bfk Insert a Blade key->value @foreach loop Blade Foreach Key
bfi Insert a Blade @for loop Blade For Increment
bw Insert a Blade @while loop Blade While
bl Insert a Blade @lang tag Blade Lang
bsw Insert a Blade @switch statement Blade Switch
<templateSet group="Blade - Bootstrap form">
<template name="bfa" value="@link($url$, $title$, [$options$])$end$" description="Insert a Bootstrap link button" toReformat="true" toShortenFQNames="false">
<variable name="url" expression="" defaultValue="&quot;url&quot;" alwaysStopAt="true" />
<variable name="title" expression="" defaultValue="&quot;title&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfb" value="@$type$($value$, [$options$])$end$" description="Insert a Bootstrap button" toReformat="true" toShortenFQNames="false">
<variable name="type" expression="enum(&quot;submit&quot;, &quot;reset&quot;, &quot;button&quot;)" defaultValue="&quot;button&quot;" alwaysStopAt="true" />
<variable name="value" expression="" defaultValue="&quot;value&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfo" value="@$type$([$options$])&#10; $end$&#10;@close" description="Insert a Bootstrap form" toReformat="true" toShortenFQNames="false">
<variable name="type" expression="enum(&quot;open&quot;,&quot;vertical&quot;,&quot;horizontal&quot;,&quot;inline&quot;)" defaultValue="&quot;open&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bft" value="@$type$($name$, $label$, $value$, [$options$])$end$" description="Insert a Bootstrap input: text, email, url, tel, number, date, time, color, textarea, range" toReformat="true" toShortenFQNames="false">
<variable name="type" expression="enum(&quot;text&quot;,&quot;email&quot;,&quot;url&quot;,&quot;tel&quot;,&quot;number&quot;,&quot;date&quot;,&quot;time&quot;,&quot;color&quot;,&quot;textarea&quot;, &quot;range&quot;)" defaultValue="&quot;text&quot;" alwaysStopAt="true" />
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="&quot;label&quot;" alwaysStopAt="true" />
<variable name="value" expression="" defaultValue="&quot;null&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfs" value="@$type$($name$, $label$, $choices$, $selected$, [$options$])$end$" description="Insert a Bootstrap choices input: select, checkboxes or radios" toReformat="true" toShortenFQNames="false">
<variable name="type" expression="enum(&quot;select&quot;,&quot;checkboxes&quot;,&quot;radios&quot;)" defaultValue="&quot;select&quot;" alwaysStopAt="true" />
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="&quot;label&quot;" alwaysStopAt="true" />
<variable name="choices" expression="" defaultValue="&quot;choices&quot;" alwaysStopAt="true" />
<variable name="selected" expression="" defaultValue="&quot;selected&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bff" value="@file($name$, $label$, [$options$])$end$" description="Insert a Bootstrap file input" toReformat="true" toShortenFQNames="false">
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="&quot;label&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfp" value="@password($name$, $label$, [$options$])$end$" description="Insert a Bootstrap password input" toReformat="true" toShortenFQNames="false">
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="&quot;label&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfc" value="@$type$($name$, $label$, $value$, $checked$, [$options$])$end$" description="Insert a Bootstrap choice input : checkbox or radio" toReformat="true" toShortenFQNames="false">
<variable name="type" expression="enum(&quot;checkbox&quot;,&quot;radio&quot;)" defaultValue="&quot;checkbox&quot;" alwaysStopAt="true" />
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="label" expression="" defaultValue="&quot;label&quot;" alwaysStopAt="true" />
<variable name="value" expression="" defaultValue="&quot;value&quot;" alwaysStopAt="true" />
<variable name="checked" expression="" defaultValue="&quot;checked&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfh" value="@hidden($name$, $value$, [$options$])$end$" description="Insert a hidden input" toReformat="true" toShortenFQNames="false">
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="value" expression="" defaultValue="&quot;value&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfl" value="@label($name$, $value$, [$options$])&#10;" description="Insert a label tag" toReformat="false" toShortenFQNames="true">
<variable name="name" expression="" defaultValue="&quot;name&quot;" alwaysStopAt="true" />
<variable name="value" expression="" defaultValue="&quot;value&quot;" alwaysStopAt="true" />
<variable name="options" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
</templateSet>
<templateSet group="Blade - Default">
<template name="bv" value="{{ $value$ }}$end$" description="Insert a Blade content tag" toReformat="true" toShortenFQNames="false">
<variable name="value" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="be" value="{!! $value$ !!}$end$" description="Insert a Blade raw tag" toReformat="true" toShortenFQNames="false">
<variable name="value" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bs" value="@$type$($parameters$)&#10; $end$&#10;@end$type$" description="Insert a Blade @xxx-@endxxx block" toReformat="true" toShortenFQNames="false">
<variable name="type" expression="enum(&quot;section&quot;,&quot;php&quot;,&quot;auth&quot;,&quot;guest&quot;,&quot;push&quot;,&quot;prepend&quot;,&quot;error&quot;,&quot;verbatim&quot;,&quot;env&quot;,&quot;once&quot;,&quot;unless&quot;,&quot;isset&quot;,&quot;empty&quot;,&quot;forelse&quot;)" defaultValue="&quot;section&quot;" alwaysStopAt="true" />
<variable name="parameters" expression="" defaultValue="&quot;parameters&quot;" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bc" value="{{-- $value$ --}}$end$" description="Insert a Blade comment" toReformat="true" toShortenFQNames="false">
<variable name="value" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bi" value="@if ($condition$)&#10; $end$&#10;@endif" description="Insert a Blade @if condition" toReformat="true" toShortenFQNames="false">
<variable name="condition" expression="" defaultValue="&quot;true&quot;" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bie" value="@if ($condition$)&#10; $end$&#10;@else&#10; &#10;@endif" description="Insert a Blade @if-@else condition" toReformat="true" toShortenFQNames="false">
<variable name="condition" expression="" defaultValue="&quot;true&quot;" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfv" value="@foreach ($items$ as $item$)&#10; $end$&#10;@endforeach" description="Insert a simple @foreach loop" toReformat="true" toShortenFQNames="false">
<variable name="items" expression="" defaultValue="&quot;$items&quot;" alwaysStopAt="true" />
<variable name="item" expression="" defaultValue="&quot;$item&quot;" alwaysStopAt="true" />
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfk" value="@foreach ($items$ as $key$ =&gt; $item$)&#10; $end$&#10;@endforeach" description="Insert a Blade key-&gt;value @foreach loop" toReformat="true" toShortenFQNames="false">
<variable name="items" expression="" defaultValue="&quot;$items&quot;" alwaysStopAt="true" />
<variable name="key" expression="" defaultValue="&quot;$key&quot;" alwaysStopAt="true" />
<variable name="item" expression="" defaultValue="&quot;$item&quot;" alwaysStopAt="true" />
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bfi" value="@for ($i$ = $from$; $i$ &lt; $to$; $i$++)&#10; $end$&#10;@endfor" description="Insert a Blade @for loop" toReformat="true" toShortenFQNames="false">
<variable name="i" expression="" defaultValue="&quot;$i&quot;" alwaysStopAt="true" />
<variable name="from" expression="" defaultValue="&quot;0&quot;" alwaysStopAt="true" />
<variable name="to" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="end" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bl" value="@lang($value$)$end$" description="Insert a Blade @lang tag" toReformat="true" toShortenFQNames="false">
<variable name="value" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bw" value="@while($condition$)&#10; $end$&#10;@endwhile" description="Insert a Blade @while loop" toReformat="true" toShortenFQNames="false">
<variable name="condition" expression="" defaultValue="&quot;true&quot;" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
<template name="bsw" value="@switch($test$)&#10; @case($value1$)&#10; $then1$&#10; @break&#10; @case($value2$)&#10; $then2$&#10; @break&#10; @default&#10; $end$&#10;@endswitch" description="Insert a Blade @switch statement" toReformat="true" toShortenFQNames="false">
<variable name="test" expression="" defaultValue="&quot;test&quot;" alwaysStopAt="true" />
<variable name="value1" expression="" defaultValue="&quot;value1&quot;" alwaysStopAt="true" />
<variable name="then1" expression="" defaultValue="&quot;todo&quot;" alwaysStopAt="true" />
<variable name="value2" expression="" defaultValue="&quot;value2&quot;" alwaysStopAt="true" />
<variable name="then2" expression="" defaultValue="&quot;todo&quot;" alwaysStopAt="true" />
<context>
<option name="HTML" value="true" />
</context>
</template>
</templateSet>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BladeInjectionConfiguration" default="false">
<directives>
<!-- START CUSTOM DIRECTIVES -->
<data directive="@open" injection="true" prefix="&lt;?= BF::open(" suffix=") =&gt;"/>
<data directive="@vertical" injection="true" prefix="&lt;?= BF::vertical(" suffix=") =&gt;"/>
<data directive="@inline" injection="true" prefix="&lt;?= BF::inline(" suffix=") =&gt;"/>
<data directive="@horizontal" injection="true" prefix="&lt;?= BF::horizontal(" suffix=") =&gt;"/>
<data directive="@close" injection="true" prefix="&lt;?= BF::close(" suffix=") =&gt;"/>
<data directive="@text" injection="true" prefix="&lt;?= BF::text(" suffix=") =&gt;"/>
<data directive="@email" injection="true" prefix="&lt;?= BF::email(" suffix=") =&gt;"/>
<data directive="@url" injection="true" prefix="&lt;?= BF::url(" suffix=") =&gt;"/>
<data directive="@tel" injection="true" prefix="&lt;?= BF::tel(" suffix=") =&gt;"/>
<data directive="@number" injection="true" prefix="&lt;?= BF::number(" suffix=") =&gt;"/>
<data directive="@date" injection="true" prefix="&lt;?= BF::date(" suffix=") =&gt;"/>
<data directive="@time" injection="true" prefix="&lt;?= BF::time(" suffix=") =&gt;"/>
<data directive="@color" injection="true" prefix="&lt;?= BF::color(" suffix=") =&gt;"/>
<data directive="@textarea" injection="true" prefix="&lt;?= BF::textarea(" suffix=") =&gt;"/>
<data directive="@password" injection="true" prefix="&lt;?= BF::password(" suffix=") =&gt;"/>
<data directive="@file" injection="true" prefix="&lt;?= BF::file(" suffix=") =&gt;"/>
<data directive="@hidden" injection="true" prefix="&lt;?= BF::hidden(" suffix=") =&gt;"/>
<data directive="@select" injection="true" prefix="&lt;?= BF::select(" suffix=") =&gt;"/>
<data directive="@range" injection="true" prefix="&lt;?= BF::range(" suffix=") =&gt;"/>
<data directive="@checkbox" injection="true" prefix="&lt;?= BF::checkbox(" suffix=") =&gt;"/>
<data directive="@checkboxes" injection="true" prefix="&lt;?= BF::checkboxes(" suffix=") =&gt;"/>
<data directive="@radio" injection="true" prefix="&lt;?= BF::radio(" suffix=") =&gt;"/>
<data directive="@radios" injection="true" prefix="&lt;?= BF::radios(" suffix=") =&gt;"/>
<data directive="@label" injection="true" prefix="&lt;?= BF::label(" suffix=") =&gt;"/>
<data directive="@submit" injection="true" prefix="&lt;?= BF::submit(" suffix=") =&gt;"/>
<data directive="@reset" injection="true" prefix="&lt;?= BF::reset(" suffix=") =&gt;"/>
<data directive="@button" injection="true" prefix="&lt;?= BF::button(" suffix=") =&gt;"/>
<data directive="@link" injection="true" prefix="&lt;?= BF::link(" suffix=") =&gt;"/>
<!-- END CUSTOM DIRECTIVES -->
<data directive="@append"/>
<data directive="@auth" injection="true" prefix="&lt;?php if(auth()-&gt;guard(" suffix=")-&gt;check()): ?&gt;"/>
<data directive="@break" injection="true" prefix="&lt;?php if(" suffix=") break; ?&gt;"/>
<data directive="@can" injection="true" prefix="&lt;?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;check(" suffix=")): ?&gt;"/>
<data directive="@canany" injection="true" prefix="&lt;?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;any(" suffix=")): ?&gt;"/>
<data directive="@cannot" injection="true" prefix="&lt;?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;denies(" suffix=")): ?&gt;"/>
<data directive="@case" injection="true" prefix="&lt;?php case (" suffix="): ?&gt;"/>
<data directive="@choice" injection="true" prefix="&lt;?php echo app('translator')-&gt;choice(" suffix="); ?&gt;"/>
<data directive="@component" injection="true" prefix="&lt;?php $__env-&gt;startComponent(" suffix="); ?&gt;"/>
<data directive="@componentfirst" injection="true" prefix="&lt;?php $__env-&gt;startComponentFirst(" suffix="); ?&gt;"/>
<data directive="@continue" injection="true" prefix="&lt;?php if(" suffix=") continue; ?&gt;"/>
<data directive="@csrf"/>
<data directive="@dd" injection="true" prefix="&lt;?php dd(" suffix="); ?&gt;"/>
<data directive="@default"/>
<data directive="@dump" injection="true" prefix="&lt;?php dump(" suffix="); ?&gt;"/>
<data directive="@each" injection="true" prefix="&lt;?php echo $__env-&gt;renderEach(" suffix="); ?&gt;"/>
<data directive="@else"/>
<data directive="@elseauth" injection="true" prefix="&lt;?php elseif(auth()-&gt;guard(" suffix=")-&gt;check()): ?&gt;"/>
<data directive="@elsecan" injection="true" prefix="&lt;?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;check(" suffix=")): ?&gt;"/>
<data directive="@elsecanany" injection="true" prefix="&lt;?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;any(" suffix=")): ?&gt;"/>
<data directive="@elsecannot" injection="true" prefix="&lt;?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;denies(" suffix=")): ?&gt;"/>
<data directive="@elseguest" injection="true" prefix="&lt;?php elseif(auth()-&gt;guard(" suffix=")-&gt;guest()): ?&gt;"/>
<data directive="@elseif" injection="true" prefix="&lt;?php elseif(" suffix="): ?&gt;"/>
<data directive="@empty" injection="true" prefix="&lt;?php if(empty(" suffix=")): ?&gt;"/>
<data directive="@endauth"/>
<data directive="@endcan"/>
<data directive="@endcanany"/>
<data directive="@endcannot"/>
<data directive="@endcomponent"/>
<data directive="@endcomponentClass"/>
<data directive="@endcomponentfirst"/>
<data directive="@endempty"/>
<data directive="@endenv"/>
<data directive="@enderror"/>
<data directive="@endfor"/>
<data directive="@endforeach"/>
<data directive="@endforelse"/>
<data directive="@endguest"/>
<data directive="@endif"/>
<data directive="@endisset"/>
<data directive="@endlang"/>
<data directive="@endonce"/>
<data directive="@endphp"/>
<data directive="@endprepend"/>
<data directive="@endproduction"/>
<data directive="@endpush"/>
<data directive="@endsection"/>
<data directive="@endslot"/>
<data directive="@endswitch"/>
<data directive="@endunless"/>
<data directive="@endverbatim"/>
<data directive="@endwhile"/>
<data directive="@env" injection="true" prefix="&lt;?php if(app()-&gt;environment(" suffix=")): ?&gt;"/>
<data directive="@error" injection="true" prefix="&lt;?php $__errorArgs = [" suffix="];&#10;$__bag = $errors-&gt;getBag($__errorArgs[1] ?? 'default');&#10;if ($__bag-&gt;has($__errorArgs[0])) :&#10;if (isset($message)) { $__messageOriginal = $message; }&#10;$message = $__bag-&gt;first($__errorArgs[0]); ?&gt;"/>
<data directive="@extends" injection="true" prefix="&lt;?php echo $__env-&gt;make(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))-&gt;render(); ?&gt;"/>
<data directive="@extendsfirst" injection="true" prefix="&lt;?php echo $__env-&gt;first(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))-&gt;render(); ?&gt;"/>
<data directive="@for" injection="true" prefix="&lt;?php for(" suffix="): ?&gt;"/>
<data directive="@foreach" injection="true" prefix="&lt;?php foreach(" suffix="): ?&gt;"/>
<data directive="@forelse" injection="true" prefix="&lt;?php foreach(" suffix="): ?&gt;"/>
<data directive="@guest" injection="true" prefix="&lt;?php if(auth()-&gt;guard(" suffix=")-&gt;guest()): ?&gt;"/>
<data directive="@hasSection" injection="true" prefix="&lt;?php if (! empty(trim($__env-&gt;yieldContent(" suffix=")))): ?&gt;"/>
<data directive="@if" injection="true" prefix="&lt;?php if(" suffix="): ?&gt;"/>
<data directive="@include" injection="true" prefix="&lt;?php echo $__env-&gt;make(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))-&gt;render(); ?&gt;"/>
<data directive="@includeFirst" injection="true" prefix="&lt;?php echo $__env-&gt;first(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))-&gt;render(); ?&gt;"/>
<data directive="@includeUnless" injection="true" prefix="&lt;?php echo $__env-&gt;renderWhen(! " suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?&gt;"/>
<data directive="@includeWhen" injection="true" prefix="&lt;?php echo $__env-&gt;renderWhen(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?&gt;"/>
<data directive="@isset" injection="true" prefix="&lt;?php if(isset(" suffix=")): ?&gt;"/>
<data directive="@json" injection="true" prefix="&lt;?php echo json_encode(" suffix=") ?&gt;"/>
<data directive="@lang" injection="true" prefix="&lt;?php echo app('translator')-&gt;get(" suffix="); ?&gt;"/>
<data directive="@method" injection="true" prefix="&lt;?php echo method_field(" suffix="); ?&gt;"/>
<data directive="@once"/>
<data directive="@overwrite"/>
<data directive="@parent"/>
<data directive="@php" injection="true" prefix="&lt;?php (" suffix="); ?&gt;"/>
<data directive="@prepend" injection="true" prefix="&lt;?php $__env-&gt;startPrepend(" suffix="); ?&gt;"/>
<data directive="@production"/>
<data directive="@push" injection="true" prefix="&lt;?php $__env-&gt;startPush(" suffix="); ?&gt;"/>
<data directive="@section" injection="true" prefix="&lt;?php $__env-&gt;startSection(" suffix="); ?&gt;"/>
<data directive="@sectionMissing" injection="true" prefix="&lt;?php if (empty(trim($__env-&gt;yieldContent(" suffix=")))): ?&gt;"/>
<data directive="@show"/>
<data directive="@slot" injection="true" prefix="&lt;?php $__env-&gt;slot(" suffix="); ?&gt;"/>
<data directive="@stack" injection="true" prefix="&lt;?php echo $__env-&gt;yieldPushContent(" suffix="); ?&gt;"/>
<data directive="@stop"/>
<data directive="@switch" injection="true" prefix="&lt;?php switch(" suffix="): ?&gt;"/>
<data directive="@unless" injection="true" prefix="&lt;?php if (! (" suffix=")): ?&gt;"/>
<data directive="@unset" injection="true" prefix="&lt;?php unset(" suffix="); ?&gt;"/>
<data directive="@verbatim"/>
<data directive="@while" injection="true" prefix="&lt;?php while(" suffix="): ?&gt;"/>
<data directive="@yield" injection="true" prefix="&lt;?php echo $__env-&gt;yieldContent(" suffix="); ?&gt;"/>
</directives>
</component>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment