How to get client ip address in register controller in laravel 5.3 with passport enabled
Hi i want to get the client ip address in my laravel project when registering, I've found some solutions that says get the ip using request global function like :
I don't know why This doesn't work for me. I tried both \Request::ip() and request()->ip() but both cases returns null(added the namespace too). Is that because I'm on localhost? it atleast should return ::1 or 127.0.0.1 i guess.