From 8e5e2fbc5fb63d7ab40fb7d35369218755318830 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 13 Jun 2019 19:45:09 -0600 Subject: [PATCH] Update AdminSettingsController --- app/Http/Controllers/Admin/AdminSettingsController.php | 8 +++----- app/Http/Controllers/AdminController.php | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Admin/AdminSettingsController.php b/app/Http/Controllers/Admin/AdminSettingsController.php index 62a28bc4c..c099f832f 100644 --- a/app/Http/Controllers/Admin/AdminSettingsController.php +++ b/app/Http/Controllers/Admin/AdminSettingsController.php @@ -7,7 +7,6 @@ use Illuminate\Http\Request; use Carbon\Carbon; use App\{Comment, Like, Media, Page, Profile, Report, Status, User}; use App\Http\Controllers\Controller; -use Jackiedo\DotenvEditor\Facades\DotenvEditor; use App\Util\Lexer\PrettyNumber; trait AdminSettingsController @@ -24,8 +23,9 @@ trait AdminSettingsController return view('admin.settings.backups', compact('files')); } - public function settingsConfig(Request $request, DotenvEditor $editor) + public function settingsConfig(Request $request) { + $editor = []; return view('admin.settings.config', compact('editor')); } @@ -50,9 +50,7 @@ trait AdminSettingsController $this->validate($request, [ 'APP_NAME' => 'required|string', ]); - Artisan::call('config:clear'); - DotenvEditor::setKey('APP_NAME', $request->input('APP_NAME')); - DotenvEditor::save(); + // Artisan::call('config:clear'); return redirect()->back(); } diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 1b67616fb..a8bb4e489 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -17,7 +17,6 @@ use App\{ use DB, Cache; use Carbon\Carbon; use Illuminate\Http\Request; -use Jackiedo\DotenvEditor\DotenvEditor; use App\Http\Controllers\Admin\{ AdminDiscoverController, AdminInstanceController,