Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Confirmation email outside of Registration #3

Open
johnmain opened this issue Oct 31, 2017 · 2 comments
Open

Send Confirmation email outside of Registration #3

johnmain opened this issue Oct 31, 2017 · 2 comments

Comments

@johnmain
Copy link

Is there a way to send a Confirmation Email outside of the Registration pages?
I have an API method for a 3rd party tool that creates a user. However, I still would like the Email Confirmation email to go out.

@bestmomo
Copy link
Owner

bestmomo commented Nov 1, 2017

No way with this package, it's another story.

@shiroamada
Copy link

shiroamada commented Dec 21, 2017

Can't you just copy the registration code and to your new API call output?

        $this->validator($request->all())->validate();

        $user = $this->create($request->all());
        $user->confirmation_code = str_random(30);
        $user->save();

        event(new Registered($user));

        $this->notifyUser($user);

        return back()->with('confirmation-success', trans('confirmation::confirmation.message'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants