How to record User login time and IP address of a Logged user In Laravel Programming

0
100

Very simple and effective technique to handle Laravel Event Fire when Authenticate User Take Action ( Register or Login), I am trying to explain your how to do it easily. Just Follow the below  method to the login Controller. Make Fire in this Controller if want to Login Action –

App\Http\Controllers\Auth\LoginController.php

Find Out find the authenticated() method inside the \Illuminate\Foundation\Auth\AuthenticatesUsers.php trait file, and this method will be called after each successful login.

Login Registration Event Listener-Handling in Laravel Programming
Login Registration Event Listener-Handling in Laravel Programming

Html code here! Replace this with any non empty text and that's it.