d2d.emegrendeles.hu/app/Console/Commands/appGetDbConfigCommand.php
E98Developer 68b7c35bef git init
2026-02-28 06:53:05 +01:00

21 lines
523 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class appGetDbConfigCommand extends Command
{
protected $signature = 'app:get-dbconfig';
protected $description = 'Command description';
public function handle(): void
{
$User = new \App\Models\User;
$DriverName = $User->getConnection()->getDriverName();
$config = config('database.connections.'.$DriverName, 'Can not get database connection config');
$this->info(var_export($config, true));
}
}