You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
I think it would be very good, if Laravel would ship with an Illuminate\Auth\Events\Registered event. It would fit very well with the other Auth events, like login, and lockedout.
It would be very useful for sending welcoming emails to members who singed in and other related stuff.
Why add it to the core and not implemented as a user?
The main benefit of adding it to the framework would be, that packages can rely upon it.
If there was an event the package could encapsulate all the logic and the user would have an easier time setting it up, as well as upgrading to new Laravel versions (if they require an update to the RegisterController).
The text was updated successfully, but these errors were encountered:
I've often wanted this myself. Though I would propose using past tense instead, because it would follow the event naming convention set by the framework.
The convention seems to be either something is happening (e.g. Attempting) or something has happened (e.g. Authenticated), and in the context of a user has signed up Registered makes more sense.
I'd be happy to prepare a PR with these changes either tonight or tomorrow. Unless anybody provides a decent argument against it.
I think it would be very good, if Laravel would ship with an
Illuminate\Auth\Events\Registered
event. It would fit very well with the other Auth events, like login, and lockedout.It would be very useful for sending welcoming emails to members who singed in and other related stuff.
Why add it to the core and not implemented as a user?
The main benefit of adding it to the framework would be, that packages can rely upon it.
For example this package: https://github.com/jrean/laravel-user-verification#example needs to ask the user to add 2 traits and some code to the
RegisterController
.If there was an event the package could encapsulate all the logic and the user would have an easier time setting it up, as well as upgrading to new Laravel versions (if they require an update to the
RegisterController
).The text was updated successfully, but these errors were encountered: