Skip to content

Commit 7f37b20

Browse files
fix: wrap update values in closures for SettingsMigrator
Co-authored-by: delicatacurtis <247246500+delicatacurtis@users.noreply.github.com>
1 parent 0e9667b commit 7f37b20

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

database/settings/2026_03_06_000000_update_social_media_settings.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
{
77
public function up(): void
88
{
9-
$this->migrator->update('site.github_url', 'https://www.github.com/liberusoftware');
10-
$this->migrator->update('site.youtube_url', 'https://www.youtube.com/@liberusoftware');
11-
$this->migrator->update('site.facebook_url', 'https://www.facebook.com/liberusoftware');
12-
$this->migrator->update('site.twitter_url', 'https://x.com/liberusoftware');
9+
$this->migrator->update('site.github_url', fn () => 'https://www.github.com/liberusoftware');
10+
$this->migrator->update('site.youtube_url', fn () => 'https://www.youtube.com/@liberusoftware');
11+
$this->migrator->update('site.facebook_url', fn () => 'https://www.facebook.com/liberusoftware');
12+
$this->migrator->update('site.twitter_url', fn () => 'https://x.com/liberusoftware');
1313
}
1414

1515
public function down(): void
1616
{
17-
$this->migrator->update('site.github_url', 'https://github.com/liberusoftware/boilerplate-laravel');
18-
$this->migrator->update('site.youtube_url', null);
19-
$this->migrator->update('site.facebook_url', null);
20-
$this->migrator->update('site.twitter_url', null);
17+
$this->migrator->update('site.github_url', fn () => 'https://github.com/liberusoftware/boilerplate-laravel');
18+
$this->migrator->update('site.youtube_url', fn () => null);
19+
$this->migrator->update('site.facebook_url', fn () => null);
20+
$this->migrator->update('site.twitter_url', fn () => null);
2121
}
2222
};

0 commit comments

Comments
 (0)