-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
database/settings/2024_11_18_184830_update_address_in_general_settings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | ||
); | ||
} | ||
}; |