All individual subscriptions are 50% off this week only!

Mego
2 months ago
223
5
Laravel

Add my own custom action after user's registration

Posted 2 months ago by Mego

I have done the user's registration process. Now I would like to add custom "action" after user registration. When user is registered, the new row in table "users" will appear. I would like to add there an action, that also new row will appear in "user_profiles" table (my custom table). I suppose, the "insert" query should be stored in App/User.php model, but where should I call this function, to be sure, the new row will be created?

Please sign in or create an account to participate in this conversation.