R
R
Roman2019-02-23 12:11:56
Laravel
Roman, 2019-02-23 12:11:56

How to create an instance of the model correctly when confirming User-a's email?

Hello.
Made the profile a separate model (not User)
Now an instance of the Profile model is created the first time the profile address is accessed.
But in a good way, you need to do this at the time of confirming the user's email.
Where is the best place to place the code (instance creation + writing to the database there)?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-02-23
@procode

Event "Email confirmed" + handler that creates a profile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question