como puedo obtener informacion de los datos de mysql
database, username, password
del config
Código PHP:
Ver original
require 'vendor/autoload.php';
include('functions.php');
use Philo\Blade\Blade;
use Illuminate\Database\Capsule\Manager as Capsule;
$views = __DIR__ . '/views';
$cache = __DIR__ . '/cache';
$template = new Blade($views, $cache);
$capsule = new Capsule;
$capsule->addConnection([
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'xxx',
'username' => 'xxx',
'password' => 'xxx',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'dump_command_path' => '/mysql/bin',
'dump_command_timeout' => 60 * 5,
'dump_using_single_transaction' => true,
]);
$capsule->setAsGlobal();
$capsule->bootEloquent();