I am developing an application using anuglarJs
on client side and Lumen
in server side for REST API's. My .env
configuration given below,
APP_ENV=local
APP_DEBUG=TRUE
APP_KEY=XrPbyRlU5p0szSw5MrAQWwWim8C0MXjT
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=kainfo
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=file
SESSION_DRIVER=file
And enabled Dotenv::load(__DIR__.'/../');
in bootstrap/app.php
My problem is,sometimes Lumen
throws 500 exception and working well on next refresh request.
The Error log is ,
[2015-06-06 07:51:41] lumen.ERROR: exception 'PDOException' with message 'SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'forge'' in C:\xampp\htdocs\Study\kasrodinfo\web\vendor\illuminate\database\Connectors\Connector.php:47