public function handle()
    {
        if (! $this->option('force') && ! $this->confirmRegenerate()) {
            return $this->info('Aborted. No changes were made. If you need assistance please contact us anytime at: support@eyewitness.io');
        }

        $app_token = $this->generateRandom(16);
        $secret_key = $this->generateRandom(32);

        $this->modifyEnvironmentFile('EYEWITNESS_APP_TOKEN', 'app_token', $app_token);
        $this->modifyEnvironmentFile('EYEWITNESS_SECRET_KEY', 'secret_key', $secret_key);
        $this->modifyEnvironmentFile('EYEWITNESS_SUBSCRIPTION_KEY', 'subscription_key', null);

        $this->laravel['config']['eyewitness.app_token'] = $app_token;
        $this->laravel['config']['eyewitness.secret_key'] = $secret_key;
        $this->laravel['config']['eyewitness.subscription_key'] = null;

        $this->displayOutcome();
        $this->checkCaching();
    }
public function handle()
    {
        if (! $this->option('force') && ! $this->confirmRegenerate()) {
            return $this->info('Aborted. No changes were made. If you need assistance please contact us anytime at: support@eyewitness.io');
        }

        $app_token = $this->generateRandom(16);
        $secret_key = $this->generateRandom(32);

        $this->modifyEnvironmentFile('EYEWITNESS_APP_TOKEN', 'app_token', $app_token);
        $this->modifyEnvironmentFile('EYEWITNESS_SECRET_KEY', 'secret_key', $secret_key);
        $this->modifyEnvironmentFile('EYEWITNESS_SUBSCRIPTION_KEY', 'subscription_key', null);

        $this->laravel['config']['eyewitness.app_token'] = $app_token;
        $this->laravel['config']['eyewitness.secret_key'] = $secret_key;
        $this->laravel['config']['eyewitness.subscription_key'] = null;

        $this->displayOutcome();
        $this->checkCaching();
    }
public function handle ( ) { if ( ! $ this -> option ( 'force' ) && ! $ this -> confirmRegenerate ( ) ) { return $ this -> info ( 'Aborted. No changes were made. If you need assistance please contact us anytime at: support@eyewitness.io' ) ; } $ app_token = $ this -> generateRandom ( 16 ) ; $ secret_key = $ this -> generateRandom ( 32 ) ; $ this -> modifyEnvironmentFile ( 'EYEWITNESS_APP_TOKEN' , 'app_token' , $ app_token ) ; $ this -> modifyEnvironmentFile ( 'EYEWITNESS_SECRET_KEY' , 'secret_key' , $ secret_key ) ; $ this -> modifyEnvironmentFile ( 'EYEWITNESS_SUBSCRIPTION_KEY' , 'subscription_key' , null ) ; $ this -> laravel [ 'config' ] [ 'eyewitness.app_token' ] = $ app_token ; $ this -> laravel [ 'config' ] [ 'eyewitness.secret_key' ] = $ secret_key ; $ this -> laravel [ 'config' ] [ 'eyewitness.subscription_key' ] = null ; $ this -> displayOutcome ( ) ; $ this -> checkCaching ( ) ; }
Set the application token and the secret key in the config file.

@return mixed
Set the application token and the secret key in the config file .