Framework: [InvalidArgumentException] Database [blog] not configured.

Created on 29 May 2017  路  6Comments  路  Source: laravel/framework

  • Laravel Version: 5.4.
  • PHP Version: 7
  • Database Driver & Version: mysql 5.6

Description:

how to fix this problem?
[InvalidArgumentException]
Database [] not configured.
i can't make migrate

Most helpful comment

Looks like the database isn't configured in your config/database.php file.

All 6 comments

Looks like the database isn't configured in your config/database.php file.

Voc锚 deve colocar TENANCY_SYSTEM_CONNECTION_NAME=mysql no seu .env e rodar o comando php artisan tenancy:install. Note que mysql 茅 o nome da sua connection no config/database.php

check if the file exists

database

database.php file is hex file because I use sqlite.

Looks like the database isn't configured in your config/database.php file.

Care

because I use sqlite.

Shit! After Debugging the whole day, I solve the problem just run this piece of code.
php artisan config:cache

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RomainSauvaire picture RomainSauvaire  路  3Comments

iivanov2 picture iivanov2  路  3Comments

progmars picture progmars  路  3Comments

klimentLambevski picture klimentLambevski  路  3Comments

PhiloNL picture PhiloNL  路  3Comments