fixed #20
This commit is contained in:
@ -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'));
|
||||
|
Reference in New Issue
Block a user