Skip to content

Instantly share code, notes, and snippets.

@andyfleming
Created July 16, 2015 09:42
Show Gist options
  • Save andyfleming/00ec93c994a6347372e9 to your computer and use it in GitHub Desktop.
Save andyfleming/00ec93c994a6347372e9 to your computer and use it in GitHub Desktop.
Database config for laravel/lumen
<?php
return [
'default' => 'accounts',
'connections' => [
'accounts' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'accounts',
'username' => 'root',
'password' => 'secret',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
'content' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'content',
'username' => 'root',
'password' => 'secret',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
],
];
@StuMason
Copy link

you need a 'migrations' => 'migrations', now to stop error SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment