PhpStorm Envoy Blade Template Highlighting

Posted 10 months ago by jjanusch

We're using Envoy for deployments, but don't normally use Blade at all. For some reason, our PhpStorm installations do not properly highlight the code written inside @setup and @task blocks and PhpStorm fails to properly indent them (just pushes them all to the left edge). We do have both the Blade Support and Laravel plugins installed and have also tinkered around setting up new Blade Directives in the Preferences, but we still do not see any highlighting (it's as if everything after @task is seen as plaintext). Here is an example of an in-progress deployment script I am working on updating right now:

@task('deploy', [ 'on' => $server ])
    cd ~/www || exit 1

    export RELEASE="$(date +'%Y%m%d%H%M%S')"

    mkdir -p "releases/$RELEASE" && \
    rsync -a ~/www/current/ "releases/$RELEASE" && \
    cd releases/$RELEASE && \
    git fetch --all

    @if ($branch)
        git checkout {{ $branch }} && \
        git pull origin {{ $branch }}
        git checkout master && \
        git pull origin master

It also happens inside the @setup block which is just running regular PHP, not bash

Everything after the @task is just plaintext in the IDE, unfortunately. Does anyone know how to enable proper PhpStorm formatting for these items?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.