##This will help you to save user's login information in database
- Laravel Version 10.x
- php 8.1
- 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.
composer require zahid566/logininfo
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,
Use library : LoginInfo\Http\Controllers\LoginInfoController;
$objLoginInfoClass = new LoginInfoController();
$user_id = Auth::id();
$objLoginInfoClass->index($user_id);