w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Overriding Default Laravel database configuration for artisan migrate commands

Would adding a new DB in the settings file help? Perhaps:

    # Slightly different database connection
    'mydbadmin' => array(
        'driver'    => 'mysql',
        'host'      => 'host1',
        'database'  => 'mydb',
        'username'  => 'mydbadmin',
        'password'  => 'ultrasecret password'
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ),

then specify that database within the CLI, e.g.

php artisan migrate:install --database['mydbadmin']




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.