iamdirt
304
6
Laravel

Manually Adding Users in Code?

Posted 6 months ago by iamdirt

I am using the auth scaffolding as my back bone and will eventually add OAuth2 to add tokens to my api routes.

I need to have an Admin which can create other users and it should send an email to the person with the account details. The problem I am having is I cant override or get Laravel to allow me to create a new user via code in a createUser method from a controller based on form data.

I am not entirely sure I am explaining this properly due to not having it fully figured out. I need this functionality and cannot find anything on how to do this.

If anyone has any ideas or tips or can point me in the right direction I would greatly appreciate it.

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