Skip to content

Commit 2b46d1c

Browse files
committed
forgot one plugin
1 parent 65abf6d commit 2b46d1c

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

billing/src/BillingPlugin.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,27 @@ public function register(Panel $panel): void
5656

5757
public function boot(Panel $panel): void {}
5858

59+
public function getSettingsFormData(): array
60+
{
61+
$data = config('billing');
62+
63+
$data['deployment_tags'] = array_filter(explode(',', $data['deployment_tags']));
64+
65+
return $data;
66+
}
67+
5968
public function getSettingsForm(): array
6069
{
6170
return [
6271
TextInput::make('key')
6372
->label('Stripe Key')
64-
->required()
65-
->default(fn () => config('billing.key')),
73+
->required(),
6674
TextInput::make('secret')
6775
->label('Stripe Secret')
68-
->required()
69-
->default(fn () => config('billing.secret')),
76+
->required(),
7077
Select::make('currency')
7178
->label('Currency')
7279
->required()
73-
->default(fn () => config('billing.currency'))
7480
->options([
7581
'USD' => 'US Dollar',
7682
'EUR' => 'Euro',

0 commit comments

Comments
 (0)