zahid566/logininfo

There is no license information available for the latest version (dev-main) of this package.

This will help you to save user's login information.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/zahid566/logininfo

dev-main 2023-07-29 14:37 UTC

This package is auto-updated.

Last update: 2025-12-29 04:07:39 UTC


README

Latest Version

##This will help you to save user's login information in database

System Architecture

  • Laravel Version 10.x
  • php 8.1

Features

  • Keep tracking users activity .
  • Users's IP address will be saved.
  • Current status of the user will be saved as an active user.
  • Last login time will be stored.

Installation

composer require zahid566/logininfo:dev-main

Migration: After successfully installing the package, migration file need to be run .

php artisan migrate

After publishing the migrate file, add the service provider in provider section. Config -> app.php file


LoginInfo\loginInfoServiceProvider::class,

Before rendering the home page, write the code in controller

Use library : LoginInfo\Http\Controllers\LoginInfoController;


$objLoginInfoClass = new LoginInfoController();
$user_id = Auth::id();
$objLoginInfoClass->index($user_id);