Skip to content

Login to test your application locally by choosing a user role or passing an id.

Notifications You must be signed in to change notification settings

maurohmartinez/bypass-login-backpack-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bypass Login — Backpack for Laravel

Latest Version on Packagist Total Downloads

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

⚠️ DO NOT install in production! ⚠️

bypass-login

Requirements

This packages depends on:

  1. backpack/crud: ^6.0
  2. backpack/permissionmanager: ^7.0
  3. laravel/framework: ^10.0.0

How to install

  1. Use composer to require this project locally
composer require maurohmartinez/bypass-login-backpack-laravel --dev
  1. Add in your .env file the login path relative to your project url, like this...
LOGIN_URL=admin/login
  1. [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!

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

Project Link: https://github.com/maurohmartinez/bypass-login-backpack-laravel

Credits

About

Login to test your application locally by choosing a user role or passing an id.

Resources

Stars

Watchers

Forks

Packages

No packages published