eddysstudio / ip-journal
A plugin for logging and auditing visits and IP addresses for Laravel + Filament
Fund package maintenance!
v1.0.3
2026-11-26 19:30 UTC
Requires
- php: ^8.2
- filament/filament: ^4.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.13
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^10.12
- pestphp/pest: ^3.8
- pestphp/pest-plugin-arch: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.2
- pestphp/pest-plugin-livewire: ^3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This package is a middleware plugin for the Filament Laravel admin panel, designed to log site visits. It stores the visitor's IP address, user agent, the URL visited, and the number of requests made to that URL by the visitor in a database. The stored data can be viewed in a dedicated section within the admin panel's sidebar.
Requirements
- PHP 8.2 or higher
- Laravel 12
- Filament 4.x
Installation
- Install the package via Composer:
composer require eddysstudio/ip-journal
- Run the following artisan command in your project directory:
php artisan migrate
- Finally, register the plugin in your Filament panel provider (usually /app/Providers/Filament/AdminPanelProvider.php) :
->plugin(new \EddysStudio\IpJournal\IpJournal())
and register the middleware in /bootstrap/app.php :
->withMiddleware(function (Middleware $middleware): void { $middleware->web(append: [ 'log.ip', ]); })
and if you need to log visits to the administrator section, also in your Filament panel provider:
use EddysStudio\IpJournal\Http\Middleware\VisitsLog; .. ->middleware([ .. VisitsLog::class, ])
License
The MIT License (MIT). Please see License File for more information.