Answer the question
In order to leave comments, you need to log in
How to display form in postman to enter code?
How to display form in postman to enter code?
There is a user registration. A notification with a code is sent
. The code for confirmation is written to the database $user-> code
How to make a redirect in the registration function, for example, to another method.
public function registration(RegisterRequest $request)
{
$user = User::create([
'email' => $request->email,
'phone' => $request->phone,
'password' =>Hash::make($request->password)
]);
Notification::send($user,new PhoneNotification);
$tokenResult = $user->createToken('Personal Access Token');
return ResponseService::sendJsonResponse(
true,
200,
[],
[
'api_token' => $tokenResult->accessToken,
'user' => $user,
]
);
}
Answer the question
In order to leave comments, you need to log in
1) Stop spamming.
2) Learn to separate questions.
3) postman has nothing to do with it at all.
4) Your problem is solved by redirecting not to /verify but to /verify/[user_id] and then you can get the user you need in the controller. Your best bet is to add a uuid and not use the ID to get any entity data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question