feat: implement global settings management with database defaults and admin UI configuration

This commit is contained in:
Ümit Tunç
2026-04-28 22:16:10 +03:00
parent 6c0987b90e
commit d57e83cb76
6 changed files with 74 additions and 31 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
require_once 'vendor/autoload.php';
$app = require_once 'bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
print_r(languages());
+16
View File
@@ -0,0 +1,16 @@
<?php
require_once 'vendor/autoload.php';
$app = require_once 'bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
use Illuminate\Support\Facades\DB;
$langs = ['en', 'tr'];
foreach ($langs as $lang) {
echo "Translations for $lang:\n";
$trans = DB::table('translate')->where('dil', $lang)->get();
foreach ($trans as $t) {
echo " - {$t->icerik} => {$t->ceviri}\n";
}
}