This might be repeated question. But I had no luck with previous answers
I just git clone
a laravel project. Now I tried to do php artisan migrate
. It returns the below error.
[InvalidArgumentException]
Database [] not configured.
and
migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]
my app/config/database.php
is like this:
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'upgrade',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
I do create the upgrade
database in mysql
.
could anyone tell me what I'm doing incorrectly?
thanks in advance.