Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slim application error. didn't get this....pleASE elaborate #21

Open
alvajahatkhan opened this issue Mar 25, 2020 · 0 comments
Open

slim application error. didn't get this....pleASE elaborate #21

alvajahatkhan opened this issue Mar 25, 2020 · 0 comments

Comments

@alvajahatkhan
Copy link

this worked for me :

$db_host = "127.0.0.1";
$db_name = "blockvotes";
$db_user = "root";
$db_pass = "";

use Illuminate\Database\Capsule\Manager AS Capsule;

$capsule = new Capsule();
$capsule->addConnection([
'driver' => "mysql",
"host" => $db_host,
"database" => $db_name,
"username" => $db_user,
"password" => $db_pass,
"charset" => "utf8",
"collation" => "utf8_general_ci",
"prefix" => ""
]);

$capsule->setAsGlobal();
$capsule->bootEloquent();

Originally posted by @twistsmyth in #3 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant