This commit is contained in:
denisdulici
2017-09-23 18:43:09 +03:00
parent 8bb636d7ad
commit 447f314eb5
9 changed files with 47 additions and 19 deletions

View File

@ -6,6 +6,7 @@ use Artisan;
use App\Http\Requests\Install\Setting as Request;
use App\Models\Auth\User;
use App\Models\Company\Company;
use DotenvEditor;
use File;
use Illuminate\Routing\Controller;
use Setting;
@ -85,6 +86,18 @@ class Settings extends Controller
//Artisan::call('config:cache');
//Artisan::call('route:cache');
// Update .env file
DotenvEditor::setKeys([
[
'key' => 'APP_INSTALLED',
'value' => 'true',
],
[
'key' => 'APP_DEBUG',
'value' => 'false',
],
])->save();
// Rename the robots.txt file
try {
File::move(base_path('robots.txt.dist'), base_path('robots.txt'));