This commit is contained in:
DariusIII
2018-02-19 13:54:02 +01:00
5 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -2,9 +2,9 @@
namespace Blacklight;
use App\Models\Settings;
use Blacklight\db\DB;
use App\Models\Category;
use App\Models\Settings;
use App\Extensions\util\Versions;
/**
+1 -7
View File
@@ -34,13 +34,7 @@ class TmuxUIStop extends Command
}
/**
* Execute the console command.
*
* @return mixed
* @throws \Symfony\Component\Process\Exception\InvalidArgumentException
* @throws \Symfony\Component\Process\Exception\LogicException
* @throws \Symfony\Component\Process\Exception\RuntimeException
* @throws \RuntimeException
* @throws \Exception
*/
public function handle()
{
+1 -1
View File
@@ -23,8 +23,8 @@ namespace App\Models;
use Blacklight\utility\Utility;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Eloquent\Model;
use Yadakhov\InsertOnDuplicateKey;
use Illuminate\Database\Eloquent\Model;
/**
* Settings - model for settings table.
+3 -2
View File
@@ -1,10 +1,11 @@
<?php
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
$tmux = \App\Models\Tmux::all();
foreach ($tmux as $item) {
echo 'Inserting '.$item->setting. ' into settings table'. PHP_EOL;
echo 'Inserting '.$item->setting.' into settings table'.PHP_EOL;
\App\Models\Settings::insertIgnore(
[
'section' => 'site',
@@ -14,4 +15,4 @@ foreach ($tmux as $item) {
'setting'=> $item->setting,
]
);
}
}
+1 -1
View File
@@ -2,8 +2,8 @@
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
use App\Models\Settings;
use Blacklight\Tmux;
use App\Models\Settings;
$page = new AdminPage();
$tmux = new Tmux();