title: laravel 5 installation php artisan parse error expecting identifier (T_STRING)
body: <p>Why every time when I install <strong>Laravel 5</strong>, after typing the command </p>
  
  <pre><code>laravel new project-name    
  </code></pre>
  
  <p>usually I get the issue </p>
  
  <pre><code>Crafting application...
  
  Parse error: parse error, expecting `"identifier (T_STRING)"' or `"variable (T_VARIABLE)"' or `'{'' or `'$'' in /Applications/MAMP/htdocs/test/artisan on line 31
  Script php artisan clear-compiled handling the post-install-cmd event returned with an error
  
  
  
    [RuntimeException]  
    Error Output:       
  
  
  
  run-script [--dev] [--no-dev] [-l|--list] [script] [args1] ... [argsN] 
  </code></pre>
  
  <p>Then when I'm trying to the command  <code>php -S localhost:8888 -t public</code> to open the sever and open it in the browser I always see this issue on my home page </p>
  
  <pre><code>Parse error: parse error, expecting `"identifier (T_STRING)"' or `"variable (T_VARIABLE)"' or `'{'' or `'$'' in /Applications/MAMP/htdocs/test/public/index.php on line 50
  </code></pre>
  
  <p>how I can fixed it?</p>