This may be a repeat question. But I had no luck with the previous answers
I am just git clonea laravel project. Now I tried to do it php artisan migrate. It returns an error below.
[InvalidArgumentException]
Database [] not configured.
and
migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]
my app/config/database.phplooks like this:
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'upgrade',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
I am creating a database upgradein mysql.
Can someone tell me what I am doing wrong?
early.
source
share