Creating the database on fly
I am working on laravel 4 app, In that i wan to allow the user to register for the app and when they register the app should allow a new empty database to the registered user,I am using mysql for backend I know the following code to set the database connection Config::set('database.connections', ConnectionArray); And to set it as default Config::set('database.default', ConnectionKey); To connect another database manually i can use this way 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'database', 'username' => 'root', 'password' => '123456', 'charset' => 'utf8',