|
6 | 6 | { |
7 | 7 | public function up(): void |
8 | 8 | { |
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'); |
13 | 13 | } |
14 | 14 |
|
15 | 15 | public function down(): void |
16 | 16 | { |
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); |
21 | 21 | } |
22 | 22 | }; |
0 commit comments