title: Syntax error using Laravel Envoy for deployment
body: <p>I created an Envoy.blade.php file for deployment, however, when I run <code>envoy run deploy</code> I get a syntax error. I tried to find the error but I don't see it.</p>
  
  <p><strong>Envoy.blade.php</strong></p>
  
  <pre><code>@setup
  // user on web-server
  $user = 'root';
  
  $timezone = 'Europe/Moscow';
  
  // path to the directory on web-server
  $path = '/var/www/';
  
  $current = path . '/current';
  
  // where take your code (git clone)
  $repo = 'git@github.com';
  
  $branch = 'master';
  
  // Directory and files with chmod 755
  $chmod = [
      'storage/logs'
  ];
  
  $date     = new DateTime('now', new DateTimeZone($timezone));
  $release  = $path .'/release'. $date-&gt;format('YmdHis');
  @endsetup
  
  @servers(['production' =&gt; $user . '@5.453.20.189'])
  
  @task('clone', ['on' =&gt; $on])
      mkdir -p {{ $release  }}
  
      git clone --depth l -b {{ $branch }} "{{ $repo }}" {{ $release }}
  
      echo "#1 - Repository has been cloned"
  @endtask
  
  {{-- Runs a fresh installation --}}
  @task('composer', ['on' =&gt; $on])
      composer self-update
  
      cd {{ $release }}
  
      composer install --no-interaction --no-dev --prefer-dist
  
      echo "#2 - Composer dependencies have been installed"
  @endtask
  
  {{-- Updates composer, then runs a fresh unstallation --}}
  @task('artisan', ['on' =&gt; $on])
      cd {{ $release }}
  
      ln -nfs {{ $path }}/.env .env;
      chfrp -h www-data .env;
  
      php artisan config:clear
  
      php artisan migrate
      php artisan clear-compiled --env-production;
      php artisan optimize --env-production;
  
      echo "#3 Production dependencies have been installed"
  @endtask
  
  {{-- Set permissions for various files and directories --}}
  @task('chmod', ['on' =&gt; $on])
  
      chgrp -R www-data {{ $release }};
      chmod -R ug+rwx {{ $release }};
  
      @foreach($chmod as $file)
          chmod -R 775 {{ $release }}/{{ $file }}
  
          chown -R {{ $user }}:www-data {{ $release }}/{{ $file }}
  
          echo "Permissions have been set for {{ $file }}"
      @endforeach
  
      echo "#4 - Permissions has been set"
  @endtask
  
  @task('update_symlinks')
      ln -nfs {{ $release }} {{ $current }};
      chgrp -h www-data {{ $current }};
  
      echo "#5 - Symlinks has beeb set"
  @endtask
  
  {{-- Run all deployment task --}}
  @macro('deploy', ['on', =&gt; 'production'])
      clone
      composer
      artisan
      chmod
      update_symlinks
  @endmacro
  </code></pre>
  
  <p>I get the error on line 79 after I run the command <code>envoy run deploy</code>. Please, help me find the error.</p>