0
votes

I was trying to follow basic auth for laravel and get how it generally works but am stuck in one area:

My question is with the last part: "Fire an event and call the listeners"

So I get that the event is authentication. What listeners are you calling in this context / what are they / what do they do?

1

1 Answers

1
votes

You can find a good example on documentation of Laravel 4.2: http://laravel.com/docs/4.2/events (see section Basic Usage -> Subscribing To An Event). In this case you can do something after user do the auth. As you see in an example it's a smart way to update last login date.