2017 © Pedro Peláez
 

library xetaravel-iptraceable

A simple package that update an IP field when the user login into the application.

image

xetaio/xetaravel-iptraceable

A simple package that update an IP field when the user login into the application.

  • Sunday, March 11, 2018
  • by Xety
  • Repository
  • 1 Watchers
  • 0 Stars
  • 578 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Xetaravel IpTraceable

>, (*1)

Stable Version Downloads Laravel License
Latest Stable Version Total Downloads Laravel 5.6 License

A simple package that update an IP field when the user login into the application. Also work with the remember_me token., (*2)

Requirement

PHP, (*3)

Installation

composer require xetaio/xetaravel-iptraceable

ServiceProviders

Import the IpTraceableServiceProvider in your config/app.php:, (*4)

'providers' => [
    //...
    Xetaio\IpTraceable\Providers\IpTraceableServiceProvider::class,
    //...
  ]
  

Middleware

Import the IpTraceable middleware in your app/Http/Kernel.php in the web part:, (*5)

protected $middlewareGroups = [
     'web' => [
         //...
         \Illuminate\Session\Middleware\StartSession::class,
         \Xetaio\IpTraceable\Http\Middleware\IpTraceable::class,
         //...
     ],
     //...
  ];
  

Note : It's very important to import the middleware after the Illuminate\Session\Middleware\StartSession middleware, since this package use the session., (*6)

Config file

Publish the package config file to your application :, (*7)

php artisan vendor:publish --provider="Xetaio\IpTraceable\Providers\IpTraceableServiceProvider" --tag=config

Database

Create 2 fields last_login_ip and last_login_date (optional) in your database :, (*8)

// Must be nullable
  $table->ipAddress('last_login_ip')->nullable();
  $table->dateTime('last_login_date')->nullable(); // (optional) Disabled by default
  

The fields name can be changed in the configuration file., (*9)

Contribute

If you want to contribute to the project by adding new features or just fix a bug, feel free to do a PR., (*10)

The Versions

11/03 2018

dev-master

9999999-dev https://github.com/XetaIO/Xetaravel-IpTraceable

A simple package that update an IP field when the user login into the application.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel login ip users laravel-5-package traceable

11/03 2018

v1.0.0

1.0.0.0 https://github.com/XetaIO/Xetaravel-IpTraceable

A simple package that update an IP field when the user login into the application.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel login ip users laravel-5-package traceable

11/03 2018

dev-L56

dev-L56 https://github.com/XetaIO/Xetaravel-IpTraceable

A simple package that update an IP field when the user login into the application.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel login ip users laravel-5-package traceable

24/05 2017

v0.0.1

0.0.1.0 https://github.com/XetaIO/Xetaravel-IpTraceable

A simple package that update an IP field when the user login into the application.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel login ip users laravel-5-package traceable