src/Helpers/EnvironmentManager.php
public function saveFileClassic(Request $input)
    {
        $message = trans('installer_messages.environment.success');

        try {
            file_put_contents($this->envPath, $input->get('envConfig'));
        }
        catch(Exception $e) {
            $message = trans('installer_messages.environment.errors');
        }

        return $message;
    }
public function saveFileClassic(Request $input)
    {
        $message = trans('installer_messages.environment.success');

        try {
            file_put_contents($this->envPath, $input->get('envConfig'));
        }
        catch(Exception $e) {
            $message = trans('installer_messages.environment.errors');
        }

        return $message;
    }
public function saveFileClassic ( Request $ input ) { $ message = trans ( 'installer_messages.environment.success' ) ; try { file_put_contents ( $ this -> envPath , $ input -> get ( 'envConfig' ) ) ; } catch ( Exception $ e ) { $ message = trans ( 'installer_messages.environment.errors' ) ; } return $ message ; }
Save the edited content to the .env file.

@param Request $input
@return string
Save the edited content to the . env file .