load(); $capsule = new Capsule; $capsule->addConnection([ "driver" => "mysql", "host" => $_ENV['DB_HOST'], "database" => $_ENV['DB_NAME'], "username" => $_ENV['DB_USER'], "password" => $_ENV['DB_PASSWORD'] ]); $capsule->setAsGlobal(); $capsule->bootEloquent();