yakofetof
yakofetof

Reputation: 11

Cartalyst Sentinel - Log events (What is the right way)

Where will be the right place to Log of every Signup and Signin attempt inside Sentinel?

I'm looking to store: status (succeful or not), time stamp, IP, HTTP User Agent, HTTP Accept Language.

I had think to put them inside IlluminateUserRepository.php into the functions recordLogin and create, but I'm not sure if this would be the right way.

Upvotes: 1

Views: 79

Answers (1)

Pablo Ezequiel Leone
Pablo Ezequiel Leone

Reputation: 1387

You should use Sentinel hooks available and add listeners to your boot() method in EventServiceProvider.

Upvotes: 0

Related Questions