jeremykenedy/laravel-ip-capture ? reverse-engineered prompt
Reverse engineered prompt
Build me a Laravel package that automatically captures and stores a user’s IP address on common model actions like signup, login, updates, and deletions.
I want it to work with any Eloquent model by adding a trait, and I want helper methods for setting the IP on specific actions, plus a way to read back all captured IP columns. It should support automatic capture from model events when enabled, but not force that by default. Please make it proxy aware so it can read the real client IP behind load balancers, and add options for hashing, anonymizing to a broader network, and masking the IP when shown in the UI.
I also want simple frontend components for displaying the stored IPs in Blade, Livewire, Vue, React, and Svelte, with a few styling choices like Tailwind and Bootstrap. Include a clean install command, publishable config and views, and a migration for the IP columns. If you need to check current Laravel docs or best practices, feel free to look them up online.
Are you gonna build this?
make sure you review the code using coderabbit