Laravel\SparkInstaller\Installation\AddCoreProviderToConfiguration::install PHP Method

install() public method

Run the installation helper.
public install ( ) : void
return void
    public function install()
    {
        $path = $this->command->path . '/config/app.php';
        $contents = file_get_contents($path);
        $contents = str_replace('        App\\Providers\\AppServiceProvider::class,', "        Laravel\\Spark\\Providers\\SparkServiceProvider::class,\n        App\\Providers\\AppServiceProvider::class,", $contents);
        file_put_contents($path, $contents);
    }
AddCoreProviderToConfiguration