bymega/login-with-id
Composer 安装命令:
composer require bymega/login-with-id
包简介
Provides automatic login with user id
README 文档
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
| Option | Description | Default value |
|---|---|---|
| user_model | Model Class to be used for Auth. | \App\Models\User::class |
| hash | Password to be used for encrypt. | test123pass |
| redirect_route | The URL to be redirected after login | /home |
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
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-16