File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ' ,
You can’t perform that action at this time.
0 commit comments