mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
19 lines
533 B
PHP
19 lines
533 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,
|
|
]
|
|
);
|
|
}
|