Devise\Support\Installer\InstallWizard::saveNewApplicationKey PHP Метод

saveNewApplicationKey() публичный Метод

Saves the new application key if there isn't already one set We need this set early on so it doesn't screw up our tokens and password hashes.
public saveNewApplicationKey ( ) : void
Результат void
    public function saveNewApplicationKey()
    {
        $env = $this->EnvironmentFileManager->get();
        if (!array_key_exists('APP_KEY', $env)) {
            $this->EnvironmentFileManager->merge(['APP_KEY' => str_random(32)]);
        }
    }