Open alvajahatkhan opened 4 years ago
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 https://github.com/yfgeek/BlockVotes/issues/3#issuecomment-425387693
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 https://github.com/yfgeek/BlockVotes/issues/3#issuecomment-425387693