Download the PHP package caesardev/laravel-login-command without Composer
On this page you can find all versions of the php package caesardev/laravel-login-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download caesardev/laravel-login-command
More information about caesardev/laravel-login-command
Files in caesardev/laravel-login-command
Package laravel-login-command
Short Description A Laravel command to login as a user
License MIT
Homepage https://github.com/caesardev/laravel-login-command
Informations about the package laravel-login-command
A Laravel command to login as a user
A Laravel package that generates secure, signed login links for authenticating users via the command line. Perfect for development, testing, or providing customer support access.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Generate a signed login link for a user by their ID:
Or by their email:
The command will output a signed URL that you can click or copy and paste into your browser to authenticate as that user.
Options
--guard: Specify the authentication guard to use
--redirect: Specify where to redirect after login
--expires: Set how many minutes the link remains valid (default: 60)
Configuration
- expiration: Default number of minutes the login link is valid (default: 60)
- guard: Default authentication guard to use (default: null, uses default guard)
- redirect_url: Default URL to redirect to after login (default: '/')
- route_name: Name of the login route (default: 'login-link')
- user_model: The User model class to use (default: 'App\Models\User')
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- hapidjus
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-login-command with dependencies
laravel/framework Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0