17 lines
450 B
PHP
17 lines
450 B
PHP
<?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";
|
|
}
|
|
}
|