bymega / login-with-id
Provides automatic login with user id
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bymega/login-with-id
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: 2025-12-17 01:00:46 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
| 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