title: Parse error when run illuminate/database/capsule with bootEloquent() in PHP
body: <p>I'm trying to make a mysql connection within a php environment using Slim and the package <code>illuminate/database</code>. Following the documentation I have created a new $capsule instance, I have passed the array with connection data through the <code>addConnection</code> method and then I have run <code>bootEloquent()</code> method:</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Capsule\Manager as Capsule;
  
  
  $capsule = new Capsule;
  
  $capsule-&gt;addConnection([
    'driver' =&gt; $app-&gt;config-&gt;get('db.driver'),
    'host' =&gt; $app-&gt;config-&gt;get('db.host'),
    'database' =&gt; $app-&gt;config-&gt;get('db.database'),
    'username' =&gt; $app-&gt;config-&gt;get('db.username'),
    'password' =&gt; $app-&gt;config-&gt;get('db.password'),
    'charset' =&gt; $app-&gt;config-&gt;get('db.charset'),
    'collation' =&gt; $app-&gt;config-&gt;get('db.collation'),
    'prefix' =&gt; $app-&gt;config-&gt;get('db.prefix')
  ]);
  
  #here the output seems correct...
  #var_dump($capsule);
  
  $capsule-&gt;bootEloquent();
  
  
   ?&gt;
  </code></pre>
  
  <p>Unfortunately when I run bootEloquent() it goes through an error:</p>
  
  <blockquote>
    <p>Parse error: parse error in
    /Sites/auth/vendor/illuminate/database/Eloquent/Model.php
    on line 597</p>
  </blockquote>
  
  <p>The problem seems related to the <strong>Eloquent Model</strong>.
  I have already tried to update the composer.json file with different versions. I have also installed again each package, but the parse error still remains.</p>
  
  <p>Currently the project is running on: <strong>PHP Version 5.6.30.</strong></p>
  
  <h3>My current composer json file with all dependencies</h3>
  
  <pre><code>{
      "autoload": {
        "psr-4": {
          "Business\\": "app/Business"
        }
      },
      "require": {
          "slim/slim": "~2.0",
          "slim/views": "0.1.*",
          "twig/twig": "~1.0",
          "phpmailer/phpmailer": "~5.2",
          "hassankhan/config": "0.8.*",
          "illuminate/database": "~5.0",
          "alexgarrett/violin": "2.*",
          "ircmaxell/random-lib": "~1.1"
      }
  }
  </code></pre>
  
  <p>Can someone explain me why I'm getting this strange bad situation?
  Thanks in advance.</p>