-3

How to create a function when the user login will send data browser and ip to the database in laravel 5.4?

Jay Blanchard
  • 34,243
  • 16
  • 77
  • 119
Dhiemas Ganisha
  • 223
  • 2
  • 15
  • 1
    Have you created a table and its related model to persist the data? Also, have you done any research on the available composer packages or other answers on stack overflow? Like [this](https://stackoverflow.com/questions/37293444/php-laravel-how-to-get-client-browser-device/37294031#37294031) or [this](https://stackoverflow.com/questions/33268683/how-to-get-client-ip-address-in-laravel-5-1)? – kidA Aug 17 '18 at 18:19
  • @kidA I've seen it, but before I didn't know how to put it on the controller login. but now it has been solved – Dhiemas Ganisha Aug 17 '18 at 18:39

1 Answers1

0

You can use LoginController in;

  protected function authenticated(Request $request,$user)
 {
     //Do something
 }
PHPSEO
  • 48
  • 3
  • 8