schema([ Placeholder::make('') ->content(new HtmlString('
Visit the Discord Developer Portal and click on New Application. Enter a Name (e.g. your panel name) and click on Create.
Copy the Client ID and the Client Secret, you will need them in the final step.
')), Placeholder::make('') ->content(new HtmlString('Under Redirects add the below URL.
')), TextInput::make('_noenv_callback') ->label('Redirect URL') ->dehydrated() ->disabled() ->hintAction(fn () => request()->isSecure() ? CopyAction::make() : null) ->formatStateUsing(fn () => config('app.url') . (Str::endsWith(config('app.url'), '/') ? '' : '/') . 'auth/oauth/callback/discord'), ]), ], parent::getSetupSteps()); } public function getIcon(): string { return 'tabler-brand-discord-f'; } public function getHexColor(): string { return '#5865F2'; } public static function register(Application $app): self { return new self($app); } }