Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Memento's avatar

Creating a two step registration form

How do I create a two step registration form where: The user click register and needs to fill name, surname, phone number. After he can click proceed to go to another firm where he registers with email, password and also confirms password. So the registration happens in step 2 after a form is filled in step 1 after clicking register. step 2 shouldn't be accessible before compiling step 1

0 likes
6 replies
Memento's avatar

None of this shows how to add the registration as the SECOND step. We can create the two step registration but can't manage to make the second step the registration phase and the first step the info gathering phase

martinbean's avatar

@memento Use a session.

Store the information from step one in a session. Move to step two. Create registration using all data from steps one and two.

jaseofspades88's avatar

What are you trying to achieve by having a 'two step' registration process? Are you measuring drop offs and retaining the first pieces of information or are you simply splitting the process so that it feels easier to do?

It would be much easier than having to remember the first step in session if you were to create a Livewire component, which gave the illusion of being two steps when really you'd utilise all that Livewire goodness to simulate the behaviour of a two step form. This would mean you're able to store all of step 1 data as state on your component and then when the second is completed, you have everything you need.

In the interest of registering, you can simply use the Laravel authentication scaffolding traits, override a few things and you'd be able to achieve what you wish.

Failing this, watch a few more videos.. there are plenty on authentication and some on Livewire too.

Please or to participate in this conversation.