Skip to content
Discussion options

You must be logged in to vote

Hey Andy, you can pass an array of actions (->commands([...])) for this to work:

public function layout(): array
  {
    return [
           Layout::block(MobileVerificationLayout::class)->commands([
              Button::make(__("Resend code"))
                ->type(Color::DEFAULT())
                ->icon("check")
                ->method("resendCode"),

              Button::make(__("Verify code"))
                ->type(Color::DEFAULT())
                ->icon("check")
                ->method("verifyCode")
      ]),
    ];
  }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ap1969
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants