Looking to hire Laravel developers? Try LaraJobs

laravel-ip-capture maintained by jeremykenedy

Description
A Laravel package to automatically capture and track IP addresses on Eloquent model actions such as signup, login, update, and deletion.
Author
Last update
2026/04/03 12:03 (dev-main)
License
Links
Downloads
1

Comments
comments powered by Disqus

Laravel IP Capture

A Laravel package to automatically capture and track IP addresses on Eloquent model actions such as signup, login, update, and deletion.

Total Downloads Latest Stable Version StyleCI License: MIT

Table of Contents

Features

Feature
Automatic IP capture on model events
Tracks signup, login, admin, update, and delete IPs
Simple trait-based integration
Works with any Eloquent model
Proxy and load balancer aware

Installation

composer require jeremykenedy/laravel-ip-capture

Configuration

php artisan vendor:publish --tag=ip-capture-config

Usage

Trait

Add the CapturesIp trait to your User model:

use Jeremykenedy\LaravelIpCapture\Traits\CapturesIp;

class User extends Authenticatable
{
    use CapturesIp;
}

Available Methods

$user->setSignupIp();
$user->setAdminIp();
$user->setUpdatedIp();
$user->setDeletedIp();

License

This package is open-sourced software licensed under the MIT license.