PHPackages                             fahadyousafmahar/slash-login - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. fahadyousafmahar/slash-login

ActiveLibrary[Testing &amp; Quality](/categories/testing)

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)

1.0.2(1y ago)101.3k1[1 issues](https://github.com/FahadYousafMahar/slash-login/issues)MITPHPPHP ^7.4|^8.0

Since Dec 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/FahadYousafMahar/slash-login)[ Packagist](https://packagist.org/packages/fahadyousafmahar/slash-login)[ RSS](/packages/fahadyousafmahar-slash-login/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

SlashLogin: Streamline Your Laravel Development
-----------------------------------------------

[](#slashlogin-streamline-your-laravel-development)

### Tired of repetitive logins during development? Let us **Slash** your **Login**!

[](#tired-of-repetitive-logins-during-development-let-us-slash-your-login)

[![GitHub contributors](https://camo.githubusercontent.com/94cc8fb397cb76ffbae827c03f632fa7376a42411518bcaf0dd3ef0c7ed65d19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6661686164796f757361666d616861722f736c6173682d6c6f67696e)](https://camo.githubusercontent.com/94cc8fb397cb76ffbae827c03f632fa7376a42411518bcaf0dd3ef0c7ed65d19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6661686164796f757361666d616861722f736c6173682d6c6f67696e)[![Packagist Downloads](https://camo.githubusercontent.com/a756754e1bf8c883d34ae1d3a0d0919745e53f31a3cefdc6484343d533a98c5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661686164796f757361666d616861722f736c6173682d6c6f67696e)](https://camo.githubusercontent.com/a756754e1bf8c883d34ae1d3a0d0919745e53f31a3cefdc6484343d533a98c5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661686164796f757361666d616861722f736c6173682d6c6f67696e)

[![GitHub top language](https://camo.githubusercontent.com/62b87196fb104c552378cdf57bd6e4c029832b6b8d73cf87e7429bbf5acb001b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6661686164796f757361666d616861722f736c6173682d6c6f67696e)](https://camo.githubusercontent.com/62b87196fb104c552378cdf57bd6e4c029832b6b8d73cf87e7429bbf5acb001b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6661686164796f757361666d616861722f736c6173682d6c6f67696e)[![GitHub License](https://camo.githubusercontent.com/3d6afd3aadbc1d5944198b24ce7f8ab288d8b40c2bc35d5b2bd0b1723a1fea26/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661686164796f757361666d616861722f736c6173682d6c6f67696e)](https://camo.githubusercontent.com/3d6afd3aadbc1d5944198b24ce7f8ab288d8b40c2bc35d5b2bd0b1723a1fea26/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661686164796f757361666d616861722f736c6173682d6c6f67696e)[![GitHub repo size](https://camo.githubusercontent.com/e58e8248314a1bd66dc686c4a9418a894643df0e09ce96ed5d2f1680f5f69582/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6661686164796f757361666d616861722f736c6173682d6c6f67696e)](https://camo.githubusercontent.com/e58e8248314a1bd66dc686c4a9418a894643df0e09ce96ed5d2f1680f5f69582/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6661686164796f757361666d616861722f736c6173682d6c6f67696e)

#### Simplify your development workflow today with SlashLogin!

[](#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:**

1. **Installation:** Install using Composer (`composer require --dev fahadyousafmahar/slash-login`).
2. **Configuration:** Customize the settings in the configuration file (`config/slash-login.php`).
3. **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:**

1. **Require the package:**

    ```
    composer require --dev fahadyousafmahar/slash-login
    ```
2. **Publish the configuration:**

    ```
    php artisan vendor:publish --tag="slash-login-config"
    ```
3. **Configure as needed:**Edit the `config/slash-login.php` file 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_ENV` configuration.

**Keywords:** Laravel, development, testing, login, authentication, efficiency, productivity, developer tool.

**Author:** [Fahad Yousaf Mahar](https://fahadyousafmahar.com)

**Contributors:**

[Austin White](http://austinw.me)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b60179f3da2fe2119df690c342bc0a0303a0d98e4f17f8600b805ca5a251a50?d=identicon)[fahadyousafmahar](/maintainers/fahadyousafmahar)

---

Top Contributors

[![FahadYousafMahar](https://avatars.githubusercontent.com/u/20330772?v=4)](https://github.com/FahadYousafMahar "FahadYousafMahar (4 commits)")[![AustinW](https://avatars.githubusercontent.com/u/333398?v=4)](https://github.com/AustinW "AustinW (2 commits)")

---

Tags

laravellaravel-bypass-loginlaravel-dev-packageloginlogin-formstestingdevlaravel developer loginlaravel impersonatelaravel login as a user

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fahadyousafmahar-slash-login/health.svg)

```
[![Health](https://phpackages.com/badges/fahadyousafmahar-slash-login/health.svg)](https://phpackages.com/packages/fahadyousafmahar-slash-login)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[orchestra/testbench-core

Testing Helper for Laravel Development

27043.7M310](/packages/orchestra-testbench-core)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[donatj/mock-webserver

Simple mock web server for unit testing

1382.5M80](/packages/donatj-mock-webserver)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
