How can I get user IP after user post a form in collection type

I don’t think you can access this in the lifecycle hooks, but you can access it in a controller or a middleware.
As it would be part of the request head that is sent to the server.

1 Like