PHPackages                             maurohmartinez/bypass-login-backpack-laravel - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. maurohmartinez/bypass-login-backpack-laravel

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

maurohmartinez/bypass-login-backpack-laravel
============================================

Bypass login to test your application locally using users with different roles or by user id.

1.1.4(8mo ago)5990↓76.2%MITPHPPHP ^8.1

Since Nov 25Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/maurohmartinez/bypass-login-backpack-laravel)[ Packagist](https://packagist.org/packages/maurohmartinez/bypass-login-backpack-laravel)[ RSS](/packages/maurohmartinez-bypass-login-backpack-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (15)Used By (0)

Bypass Login — Backpack for Laravel
===================================

[](#bypass-login--backpack-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ffb476450d17c89217e46088922b0720e31ea720df1e1d9d547b45ebf73445b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6175726f686d617274696e657a2f6279706173732d6c6f67696e2d6261636b7061636b2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurohmartinez/bypass-login-backpack-laravel)[![Total Downloads](https://camo.githubusercontent.com/b97fa320856ce821698ad33dfba874796104377b8de712fc284c639b4b06775e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6175726f686d617274696e657a2f6279706173732d6c6f67696e2d6261636b7061636b2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurohmartinez/bypass-login-backpack-laravel)

Use a simple url to login with users having different roles to test your application locally.

⚠️ DO NOT install in production! ⚠️

[![bypass-login](https://private-user-images.githubusercontent.com/33960976/293164462-edae8441-280f-44cf-ba57-37f922f72046.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODY3NTYwMjIsIm5iZiI6MTc4Njc1NTcyMiwicGF0aCI6Ii8zMzk2MDk3Ni8yOTMxNjQ0NjItZWRhZTg0NDEtMjgwZi00NGNmLWJhNTctMzdmOTIyZjcyMDQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODE1VDAxMDIwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0OTE1N2Y2NzgyMWU1NTY2NDM4NGEzNDFkYzdmY2NiMGJhYzE1ZGMwMzFlNzRlYTg3YWI1ZjlhODNmZjZkYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.5MI7YskCaag8DH9gCsGkYQT48nfd_pUtsiJmKTjLJl8)](https://private-user-images.githubusercontent.com/33960976/293164462-edae8441-280f-44cf-ba57-37f922f72046.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODY3NTYwMjIsIm5iZiI6MTc4Njc1NTcyMiwicGF0aCI6Ii8zMzk2MDk3Ni8yOTMxNjQ0NjItZWRhZTg0NDEtMjgwZi00NGNmLWJhNTctMzdmOTIyZjcyMDQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODE1VDAxMDIwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0OTE1N2Y2NzgyMWU1NTY2NDM4NGEzNDFkYzdmY2NiMGJhYzE1ZGMwMzFlNzRlYTg3YWI1ZjlhODNmZjZkYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.5MI7YskCaag8DH9gCsGkYQT48nfd_pUtsiJmKTjLJl8)Requirements
------------

[](#requirements)

This packages depends on:

1. [backpack/crud: ^6.0](https://backpackforlaravel.com/)
2. [backpack/permissionmanager: ^7.0](https://github.com/Laravel-Backpack/PermissionManager)
3. [laravel/framework: ^10.0.0](https://laravel.com/)

How to install
--------------

[](#how-to-install)

1. Use composer to require this project **locally**

```
composer require maurohmartinez/bypass-login-backpack-laravel --dev
```

2. Add in your .env file the login path relative to your project url, like this...

```
LOGIN_URL=admin/login
```

3. \[Optional\] Publish views files if you need to customize them

```
   php artisan vendor:publish --provider="MHMartinez\BypassLogin\app\Providers\BypassLoginServiceProvider" --tag=view
```

### That's it!

[](#thats-it)

You have now two new ways to login:

1. Go to your login page, add `/bypass` at the end and pick a user's role to login.
2. In case you just want to pass a user id, go to your login page, and add `/bypass/{id}` to login.

Contact
-------

[](#contact)

Project Link:

Credits
-------

[](#credits)

- [Mauro Martinez](https://inspiredpulse.com/) Developer
- [Cristian Tabacitu](https://tabacitu.ro/) For creating [Backpack for Laravel](https://backpackforlaravel.com/)!

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance60

Regular maintenance activity

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~57 days

Recently: every ~119 days

Total

14

Last Release

257d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.0.5PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/21192abc454e8b809201f9150490b1b6f694cfdf3e6494d04fb915b9fb1e697d?d=identicon)[maurohmartinez](/maintainers/maurohmartinez)

---

Top Contributors

[![maurohmartinez](https://avatars.githubusercontent.com/u/33960976?v=4)](https://github.com/maurohmartinez "maurohmartinez (23 commits)")

---

Tags

laravelbackpackbypass logintest users locally

### Embed Badge

![Health badge](/badges/maurohmartinez-bypass-login-backpack-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/maurohmartinez-bypass-login-backpack-laravel/health.svg)](https://phpackages.com/packages/maurohmartinez-bypass-login-backpack-laravel)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[backpack/theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.

37664.1k](/packages/backpack-theme-tabler)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21327.3k4](/packages/ecotone-laravel)[aurorawebsoftware/aauth

Laravel Aauth

412.4k1](/packages/aurorawebsoftware-aauth)[maurohmartinez/impersonate-users-backpack-laravel

A simple package that adds the impersonate operation for admins

1110.6k](/packages/maurohmartinez-impersonate-users-backpack-laravel)

PHPackages © 2026

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