Skip to content

Commit

Permalink
fix: remove mention of IRIS from address (resolves #2367) (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara authored Nov 19, 2024
1 parent 979d750 commit 7110e39
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

use Spatie\LaravelSettings\Migrations\SettingsMigration;

return new class extends SettingsMigration
{
public function up(): void
{
$this->migrator->update(
'general.address',
fn ($address) => array_map(fn ($value) => str_replace(' ℅ IRIS', '', $value), (array) $address)
);
}

public function down(): void
{
$this->migrator->update(
'general.address',
fn ($address) => ['en' => 'The Accessibility Exchange ℅ IRIS
20-850 King Street West
Oshawa, ON, L1J 8N5']
);
}
};

0 comments on commit 7110e39

Please sign in to comment.