I basically just copy the entire class, just for that reason, and don't use interact or swap if I can help it.
Example:
copy Laravel\Spark\Interactions\Settings\Profile\UpdateContactInformation.php
to App\SparkExtensions\UpdateContactInformation.php
In App\SparkExtensions\UpdateContactInformation.php, Add:
use Laravel\Spark\Interactions\Settings\Profile\UpdateContactInformation as SparkUpdateContactInformation;
Then change the class definition to:
class UpdateContactInformation extends SparkUpdateContactInformation
Then in the SparkServiceProvide, add the new singleton to the register method:
public function register()
{
$this->app->singleton(
'Laravel\Spark\Contracts\Interactions\Settings\Profile\UpdateContactInformation',
'App\SparkExtensions\UpdateContactInformation'
);
}
Now you can alter the code in your new class and it will still work the same, and it won't affect the original spark files when updating since you didn't touch them.