V
V
Vladislav2017-04-07 11:58:40
Laravel
Vladislav, 2017-04-07 11:58:40

How to add a field and data from another table when registering a user?

There is an Administrator user, how can you implement user registration and a device (so that when creating a user, the device for the user of which we register is saved)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Lero, 2017-04-07
@Corazonroto

In migrations, add a field like user_agent to the Users table. And the user-agent can be obtained by JS via navigator.userAgent and passed to the request, or via PHP $_SERVER['HTTP_USER_AGENT'].

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question