I have an application with Laravel 4, that runs in localhost correctly, but when I uploaded it in my host I received the error .
app>config>database.php file is:
Maybe you should add double-quotes for password in env:
# Config: database DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=db_name DB_USERNAME=db_user DB_PASSWORD="db_password"
and
php artisan config:clear