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

[Request] Events #182

Closed
MichalPB1 opened this issue Apr 7, 2020 · 2 comments
Closed

[Request] Events #182

MichalPB1 opened this issue Apr 7, 2020 · 2 comments

Comments

@MichalPB1
Copy link

Hi,
Have you thought about adding events that will allow easily extend the library and execute custom codes?

  • event after success login
  • event after logout
  • etc

E.g:
I would like to restore the last user cart data after login and that events would be very useful for that.

@MGatner
Copy link
Collaborator

MGatner commented Apr 7, 2020

Login and Logout events already exist, e.g.:

Events::trigger('login', $user);

If there are others you had in mind for sure send a PR, I’m in favor of events since they have almost no impact when there is nothing hooked.

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

2 participants