mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 22:01:33 +00:00
19 lines
500 B
PHP
19 lines
500 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
|
|
|
$tmux = Illuminate\Support\Facades\DB::table('tmux')->get();
|
|
|
|
foreach ($tmux as $item) {
|
|
echo 'Inserting '.$item->setting.' into settings table'.PHP_EOL;
|
|
App\Models\Settings::insertOrIgnore(
|
|
[
|
|
'section' => 'site',
|
|
'subsection' => 'tmux',
|
|
'name' => $item->setting,
|
|
'value' => $item->value,
|
|
'setting' => $item->setting,
|
|
]
|
|
);
|
|
}
|