title: syntax error, unexpected ')', expecting ',' or ';' using @include in blade view
body: <p>I have these views:</p>
  
  <pre><code>- /app/views/hello.blade.php
  - /app/views/bye.blade.php
  </code></pre>
  
  <p>In controller I do this:</p>
  
  <pre><code>$this-&gt;layout-&gt;content = \View::make('hello');
  </code></pre>
  
  <p>In <code>hello.blade.php</code> I have this:</p>
  
  <pre><code>Saying&lt;br&gt;
  @include('bye')
  </code></pre>
  
  <p>In <code>bye.blade.php</code> I have this:</p>
  
  <pre><code>&lt;strong&gt;bye&lt;/strong&gt;
  </code></pre>
  
  <p>Using <code>@include</code> throws the exception:</p>
  
  <pre><code>Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_PARSE)
  syntax error, unexpected ')', expecting ',' or ';'
  
  /var/www/html/laravel/app/storage/views/706465d8306e75c61fc49b077329c696:
  &lt;?php echo $__env-&gt;make('bye', array_except(get_defined_vars(), array('__data', '__path')))); ?&gt;
  </code></pre>
  
  <p>However, if I change the content of <code>hello.blade.php</code> to this, everything works fine:</p>
  
  <pre><code>Saying&lt;br&gt;
  {{ \View::make('bye')-&gt;render() }}
  </code></pre>
  
  <p>am I missing something?</p>
  
  <p><strong>Update 1:</strong> </p>
  
  <p>Verifying and changing <code>Line Separator</code> as reported here <a href="https://stackoverflow.com/a/23137421/1424329">https://stackoverflow.com/a/23137421/1424329</a> looks like is not this case because actually the value is <code>windows eof</code> format.</p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>My last move was to review the <a href="https://github.com/laravel/framework/blob/4.2/src/Illuminate/View/Compilers/BladeCompiler.php" rel="nofollow noreferrer"> framework / src / Illuminate / View / Compilers / BladeCompiler.php
  </a> file, specifically the fuction that compiles the <code>@include</code>:</p>
  
  <pre><code>/**
  * Compile the include statements into valid PHP.
  *
  * @param string $expression
  * @return string
  */
  protected function compileInclude($expression)
  {
      if (starts_with($expression, '('))
      {
          $expression = substr($expression, 1, -1);
      }
  
      return "&lt;?php echo \$__env-&gt;make($expression, array_except(get_defined_vars(), array('__data', '__path')))-&gt;render(); ?&gt;";
  }
  </code></pre>
  
  <p>Guess what? The original source differs from mine. This is my <code>compileInclude</code> fuction:</p>
  
  <pre><code>protected function compileInclude($expression)
  {
      if (starts_with($expression, '('))
      {
          $expression = substr($expression, 1, -1);
      }
  
      return "&lt;?php echo \$__env-&gt;make($expression, array_except(get_defined_vars(), array('__data', '__path')))); ?&gt;";
  }
  </code></pre>
  
  <p>Then, how can be this possible? I will investigate this change and how could be done. For the moment, I would like to know how to pull original laravel's source to my project using composer?</p>