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(5mo ago)5944↓50%MITPHPPHP ^8.1

Since Nov 25Pushed 5mo 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 1mo 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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ4OTMyMDUsIm5iZiI6MTc3NDg5MjkwNSwicGF0aCI6Ii8zMzk2MDk3Ni8yOTMxNjQ0NjItZWRhZTg0NDEtMjgwZi00NGNmLWJhNTctMzdmOTIyZjcyMDQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzMwVDE3NDgyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4Y2RjMWIxYjVkZWY1NmJkMjgwZTVhZjU4YjRiZGM4NTIyOTM1YjE3MWI4MmM3N2MyM2Y3ZWNjM2Q2NGYzZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.riYJlBWY7mR7rqTRfor9Rt_HfPZapRzjChofLETpYhs)](https://private-user-images.githubusercontent.com/33960976/293164462-edae8441-280f-44cf-ba57-37f922f72046.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ4OTMyMDUsIm5iZiI6MTc3NDg5MjkwNSwicGF0aCI6Ii8zMzk2MDk3Ni8yOTMxNjQ0NjItZWRhZTg0NDEtMjgwZi00NGNmLWJhNTctMzdmOTIyZjcyMDQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzMwVDE3NDgyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4Y2RjMWIxYjVkZWY1NmJkMjgwZTVhZjU4YjRiZGM4NTIyOTM1YjE3MWI4MmM3N2MyM2Y3ZWNjM2Q2NGYzZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.riYJlBWY7mR7rqTRfor9Rt_HfPZapRzjChofLETpYhs)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

43

—

FairBetter than 91% of packages

Maintenance71

Regular maintenance activity

Popularity21

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

165d 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

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[pragmarx/google2fa-laravel

A One Time Password Authentication package, compatible with Google Authenticator.

1.0k15.5M63](/packages/pragmarx-google2fa-laravel)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[maurohmartinez/impersonate-users-backpack-laravel

A simple package that adds the impersonate operation for admins

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

PHPackages © 2026

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