title: Laravel 5 Fatal error: Call to undefined function database_path()
body: <p>On a new Laravel 5 install on a mac, i received the following error after setting the virtual hosts and .env files</p>
  
  <pre><code>Fatal error: Call to undefined function database_path() in /Library/WebServer/Documents/laraveltest/config/database.php on line 51
  </code></pre>
  
  <p>The line 51 contains the following:</p>
  
  <pre><code>        'database' =&gt; env('DB_DATABASE', database_path('database.sqlite')),
  </code></pre>
  
  <p>changing it to </p>
  
  <pre><code> 'database' =&gt; 'dbname',
  </code></pre>
  
  <p>results in the following error</p>
  
  <pre><code>FatalErrorException in ProviderRepository.php line 150:
  Class 'Collective\Html\HtmlServiceProvider' not found
  </code></pre>
  
  <p>any help is much appreciated</p>