0
I’m developing a system in Laravel(php).
I read in several articles that "we should" use "EVENTS" to perform actions after the main one has been done, for example:
-> in the controller:
// I register a user
// calls Event(store)
-> in the Event store, there is a system for each item, ex:
//register in the specified user group.
//e-mail us about the registration.
// ...
The idea is really this?
'Cause I thought it could be done this way too:
-> in the controller
// calls Event store
-> in the Event store:
//makes the user registration
//register in the specified user group.
//e-mail us about the registration.
// ..