K
K
kamwork2016-10-25 20:14:06
Laravel
kamwork, 2016-10-25 20:14:06

How to properly do user registration in laravel 5.3?

Hello.
By default registration goes through /register - [email protected] with validation specified in RegisterController.
But what about when I have several ways to register, for example, through the admin panel? If you use [email protected], then the redirect after successful registration will not be to the address that I need from the admin panel.
I do not want to produce additional validation either.
Tell me how to be.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kamwork, 2016-10-28
@kamwork

The lesson on laracast helped https://laracasts.com/series/whats-new-in-laravel-...

A
Alexander Aksentiev, 2016-10-25
@Sanasol

from the admin panel, this is not registration, but the creation of a user by the admin. And the behavior should be completely different, which is logical.
Why are you trying to solve this as a registration?
Well, or make your own class that inherits from the right one and change the behavior in it as you like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question