-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from Magnesium38/handle-parens
Handle Parentheses On Anonymous Settings Migrations
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
tests/Migrations/2018_11_21_091111_create_fake_anonymous_class_with_parentheses_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,14 @@ | ||
<?php | ||
|
||
use Spatie\LaravelSettings\Migrations\SettingsBlueprint; | ||
use Spatie\LaravelSettings\Migrations\SettingsMigration; | ||
|
||
return new class() extends SettingsMigration { | ||
public function up(): void | ||
{ | ||
$this->migrator->inGroup('anonymous-class-with-parentheses-general', function (SettingsBlueprint $migrator) { | ||
$migrator->add('name', 'laravel-settings'); | ||
$migrator->add('organization', 'spatie'); | ||
}); | ||
} | ||
}; |
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