数据库管理 @if ($editable) 添加数据库 @endif
@include('system_settings.partials.navigation') @if ($errors->any()) @endif

当前系统数据库

{{ strtoupper($systemDatabase['driver']) }} · {{ $systemDatabase['host'] }}{{ $systemDatabase['port'] ? ':' . $systemDatabase['port'] : '' }} · {{ $systemDatabase['database'] ?: $systemDatabase['connection'] }}

用户、系统设置和下方所有数据库配置都统一保存在这个数据库中。系统库的启动连接由私有 runtime/.env 提供,页面不会显示密码。

@if ($editable)

下方可继续添加多个云数据库;连接测试只执行 SELECT 1。

@else

生产环境不允许在网页中修改数据库凭据。

@endif
@forelse ($connections as $connection) @empty @endforelse
名称 地址 数据库 业务绑定 状态 操作
{{ $connection->name }} {{ $connection->host }}:{{ $connection->port }} {{ $connection->database_name }} {{ $sourceLabels[$connection->source_key] ?? '未绑定' }} $connection->enabled, 'bg-gray-100 text-gray-600' => ! $connection->enabled, ])>{{ $connection->enabled ? '启用' : '停用' }}
@csrf
修改
@csrf @method('DELETE')
还没有数据库配置,点击“添加数据库”开始。