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 notification on unban #59

Closed
antonkomarev opened this issue Jun 3, 2020 · 1 comment
Closed

Send notification on unban #59

antonkomarev opened this issue Jun 3, 2020 · 1 comment
Labels

Comments

@antonkomarev
Copy link
Member

@antonkomarev Is there any way:

When the user clicks a button, an unban link will be sent to that user's email address.

When the user clicks on the unban link or button it triggers a controller which trigger's this
$user->unban which unbans the user.

Thank you, Unable to pull a request.

Originally posted by @maxillarious in #40 (comment)

@antonkomarev
Copy link
Member Author

@maxillarious

Listen to \Cog\Laravel\Ban\Events\ModelWasBanned event and dispatch email notification.

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

No branches or pull requests

1 participant