schema([ Placeholder::make('') ->content(new HtmlString(Blade::render('
Visit the
Enter an Application name (e.g. your panel name), set Homepage URL to your panel url and enter the below url as Authorization callback URL.
'))), TextInput::make('_noenv_callback') ->label('Authorization callback URL') ->dehydrated() ->disabled() ->hintAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null) ->default(fn () => url('/auth/oauth/callback/github')), Placeholder::make('') ->content(new HtmlString('When you filled all fields click on Register application.
')), ]), Step::make('Create Client Secret') ->schema([ Placeholder::make('') ->content(new HtmlString('Once you registered your app, generate a new Client Secret.
You will also need the Client ID.
')), ]), ], parent::getSetupSteps()); } public function getIcon(): string { return 'tabler-brand-github-f'; } public function getHexColor(): string { return '#4078c0'; } public static function register(Application $app): self { return new self($app); } }