Skip to content

Commit a731269

Browse files
committed
Remove old config name reference
1 parent 5d038c3 commit a731269

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/FieldsServiceProvider.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ public function configurePackage(Package $package): void
4040
->askToStarRepoOnGitHub('vormkracht10/filament-fields');
4141
});
4242

43-
// $configFileName = $package->shortName();
44-
4543
if (file_exists($package->basePath('/../config/fields.php'))) {
46-
$package->hasConfigFile();
44+
$package->hasConfigFile('fields');
4745
}
4846

4947
if (file_exists($package->basePath('/../database/migrations'))) {
@@ -91,7 +89,7 @@ public function packageBooted(): void
9189

9290
$this->app->bind(FieldInspector::class, FieldInspectionService::class);
9391

94-
collect($this->app['config']['filament-fields']['custom_fields'] ?? [])
92+
collect($this->app['config']['fields']['custom_fields'] ?? [])
9593
->each(function ($field) {
9694
Fields::registerField($field);
9795
});
@@ -155,4 +153,4 @@ protected function getMigrations(): array
155153
'create_fields_table',
156154
];
157155
}
158-
}
156+
}

0 commit comments

Comments
 (0)