Hola a todos es que tengo esto
Código PHP:
Ver original$capsule = new Capsule;
$capsule->addConnection([
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'fos',
'username' => 'iptv',
'password' => '1234',
'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();
y con esto obtengo un print del array
print_r( $capsule);
y resultado es este
Illuminate\Database\Capsule\Manager Object ( [manager:protected] => Illuminate\Database\DatabaseManager Object ( [app:protected] => Illuminate\Container\Container Object ( [resolved:protected] => Array ( ) [bindings:protected] => Array ( ) [methodBindings:protected] => Array ( ) [instances:protected] => Array ( [config] => Illuminate\Support\Fluent Object ( [attributes:protected] => Array ( [database.fetch] => 5 [database.default] => default [database.connections] => Array ( [default] => Array ( [driver] => mysql [host] => localhost [database] => fos [username] => iptv [password] => 1234 [charset] => utf8 [collation] => utf8_unicode_ci [prefix] => [dump_command_path] => /mysql/bin [dump_command_timeout] => 300 [dump_using_single_transaction] => 1 ) ) ) ) ) [aliases:protected] => Array ( ) [abstractAliases:protected] => Array ( ) [extenders:protected] => Array ( ) [tags:protected] => Array ( ) [buildStack:protected] => Array ( ) [with:protected] => Array ( ) [contextual] => Array ( ) [reboundCallbacks:protected] => Array ( ) [globalResolvingCallbacks:protected] => Array ( ) [globalAfterResolvingCallbacks:protected] => Array ( ) [resolvingCallbacks:protected] => Array ( ) [afterResolvingCallbacks:protected] => Array ( ) ) [factory:protected] => Illuminate\Database\Connectors\ConnectionFactory Object ( [container:protected] => Illuminate\Container\Container Object ( [resolved:protected] => Array ( ) [bindings:protected] => Array ( ) [methodBindings:protected] => Array ( ) [instances:protected] => Array ( [config] => Illuminate\Support\Fluent Object ( [attributes:protected] => Array ( [database.fetch] => 5 [database.default] => default [database.connections] => Array ( [default] => Array ( [driver] => mysql [host] => localhost [database] => fos [username] => iptv [password] => 1234 [charset] => utf8 [collation] => utf8_unicode_ci [prefix] => [dump_command_path] => /mysql/bin [dump_command_timeout] => 300 [dump_using_single_transaction] => 1 ) ) ) ) ) [aliases:protected] => Array ( ) [abstractAliases:protected] => Array ( ) [extenders:protected] => Array ( ) [tags:protected] => Array ( ) [buildStack:protected] => Array ( ) [with:protected] => Array ( ) [contextual] => Array ( ) [reboundCallbacks:protected] => Array ( ) [globalResolvingCallbacks:protected] => Array ( ) [globalAfterResolvingCallbacks:protected] => Array ( ) [resolvingCallbacks:protected] => Array ( ) [afterResolvingCallbacks:protected] => Array ( ) ) ) [connections:protected] => Array ( ) [extensions:protected] => Array ( ) ) [container:protected] => Illuminate\Container\Container Object ( [resolved:protected] => Array ( ) [bindings:protected] => Array ( ) [methodBindings:protected] => Array ( ) [instances:protected] => Array ( [config] => Illuminate\Support\Fluent Object ( [attributes:protected] => Array ( [database.fetch] => 5 [database.default] => default [database.connections] => Array ( [default] => Array ( [driver] => mysql [host] => localhost [database] => fos [username] => iptv [password] => 1234 [charset] => utf8 [collation] => utf8_unicode_ci [prefix] => [dump_command_path] => /mysql/bin [dump_command_timeout] => 300 [dump_using_single_transaction] => 1 ) ) ) ) ) [aliases:protected] => Array ( ) [abstractAliases:protected] => Array ( ) [extenders:protected] => Array ( ) [tags:protected] => Array ( ) [buildStack:protected] => Array ( ) [with:protected] => Array ( ) [contextual] => Array ( ) [reboundCallbacks:protected] => Array ( ) [globalResolvingCallbacks:protected] => Array ( ) [globalAfterResolvingCallbacks:protected] => Array ( ) [resolvingCallbacks:protected] => Array ( ) [afterResolvingCallbacks:protected] => Array ( ) ) )
y quiero poder obtener los datos de la base dato como puedo hacer esto posible