I am using to set database dynamically and running migration to update database to create all table. with below command
Artisan::call("migrate",['--database'=>'new_database','--path'=>'database/migrations/company']);
But I am always getting this error
1/1 InvalidArgumentException in DatabaseManager.php line 239: Database [new_database] not configured.
In my database.php is have created connection as
'company' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '3306'),
'database' => '',
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],
Pleas help me to understand.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2IgYbdn
via IFTTT
Aucun commentaire:
Enregistrer un commentaire