Laravel\SparkInstaller\InteractsWithSparkConfiguration::storeToken PHP Method

storeToken() protected method

Write the Spark token to the configuration.
protected storeToken ( string $token ) : void
$token string
return void
    protected function storeToken($token)
    {
        file_put_contents($this->configPath(), json_encode(['token' => $token], JSON_PRETTY_PRINT) . PHP_EOL);
    }