yfgeek / BlockVotes

An e-voting system based on blockchain using ring signature
GNU General Public License v3.0
276 stars 113 forks source link

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

Open alvajahatkhan opened 4 years ago

alvajahatkhan commented 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