Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Replace helper with class method
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidlaasri committed Apr 16, 2020
1 parent 4fdb6c9 commit d2184e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Helpers/EnvironmentManager.php
Expand Up @@ -4,6 +4,7 @@

use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Str;

class EnvironmentManager
{
Expand Down Expand Up @@ -96,7 +97,7 @@ public function saveFileWizard(Request $request)
$envFileData =
'APP_NAME=\''.$request->app_name."'\n".
'APP_ENV='.$request->environment."\n".
'APP_KEY='.'base64:'.base64_encode(str_random(32))."\n".
'APP_KEY='.'base64:'.base64_encode(Str::random(32))."\n".
'APP_DEBUG='.$request->app_debug."\n".
'APP_LOG_LEVEL='.$request->app_log_level."\n".
'APP_URL='.$request->app_url."\n\n".
Expand Down

0 comments on commit d2184e2

Please sign in to comment.