bymega / login-with-id
Provides automatic login with user id
dev-main
2024-01-16 20:34 UTC
Requires
- php: ^7.2 || ^8.0
- laravel/framework: ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
This package is auto-updated.
Last update: 2024-09-16 22:11:44 UTC
README
It creates automatic login link with user id for laravel.
Installation
Laravel
Require this package in your composer.json and update composer.
composer require bymega/login-with-id
Configuration
The defaults are set in config/loginwithid.php
. Publish the config to copy the file to your own config:
php artisan vendor:publish --provider="Bymega\LoginWithId\LoginWithIdServiceProvider"
Options
Using
http://localhost/with-login/{userId}/{hash}
Values:
- {userId} : ID of the user you want to log in
- {hash} : paswword in the config file where you wrote the hash (Default test123pass)
Example:
http://localhost/with-login/1/test123pass