schema([ Placeholder::make('') ->content(new HtmlString(Blade::render('

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 from the OAuth2 tab, 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 (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null) ->formatStateUsing(fn () => 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); } }