fahadyousafmahar/slash-login
最新稳定版本:1.0.2
Composer 安装命令:
composer require --dev fahadyousafmahar/slash-login
包简介
Say goodbye to repetitively fill / submit login forms during development of your laravel applications. This package allows you to login as any user with just a "slash login" (/login/user_id)
README 文档
README
Tired of repetitive logins during development? Let us Slash your Login!
Simplify your development workflow today with SlashLogin!
SlashLogin is a Laravel package designed to simplify your development / testing workflow. It allows you to quickly log in as any user in your application by accessing a configured route. It's perfect for developers who want to save time and effort by eliminating repetitive logins during development.
Key Features:
- Effortless Login: Login as any user with a single route.
- Flexible Configuration: Customize the login route, user model, redirect route, and more.
- Secure by Design: Designed for development environments only, ensuring production security.
- Easy Installation and Usage: Quick setup and intuitive configuration.
How It Works:
- Installation: Install using Composer (
composer require --dev fahadyousafmahar/slash-login). - Configuration: Customize the settings in the configuration file (
config/slash-login.php). - Usage: Access the configured route with the desired user ID to log in.
Example:
If you configure the route as login then you can log in as user with ID 123 by visiting http://your-app.com/login/123.
Benefits:
- Accelerated Development: Save time and effort by eliminating repetitive logins.
- Enhanced Testing: Quickly test different user scenarios without manual logins.
- Simplified Debugging: Easily access various user accounts for debugging purposes.
Installation:
-
Require the package:
composer require --dev fahadyousafmahar/slash-login
-
Publish the configuration:
php artisan vendor:publish --tag="slash-login-config" -
Configure as needed: Edit the
config/slash-login.phpfile to customize the login behavior.- route: The route segment for login (default: login).
- model: The User model class to fetch user data.
- redirect_route: The route to redirect to after login.
- guard: The authentication guard to use (default: web).
- custom_session_data: Additional session data to set after login.
- Note:
This package is intended for development and testing environments only. It automatically disables itself in production environments based on the
APP_ENVconfiguration.
Keywords: Laravel, development, testing, login, authentication, efficiency, productivity, developer tool.
Author: Fahad Yousaf Mahar
Contributors:
统计信息
- 总下载量: 1.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-17