mardi 24 mai 2016

Laravel 5 Fatal error: Call to undefined function database_path()

On a new Laravel 5 install on a mac, i received the following error after setting the virtual hosts and .env files

Fatal error: Call to undefined function database_path() in /Library/WebServer/Documents/laraveltest/config/database.php on line 51

The line 51 contains the following:

        'database' => env('DB_DATABASE', database_path('database.sqlite')),

changing it to

 'database' => 'dbname',

results in the following error

FatalErrorException in ProviderRepository.php line 150:
Class 'Collective\Html\HtmlServiceProvider' not found

any help is much appreciated



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/20wcInv
via IFTTT

Aucun commentaire:

Enregistrer un commentaire