Use a simple url to login with users having different roles to test your application locally.
This packages depends on:
- Use composer to require this project locally
composer require maurohmartinez/bypass-login-backpack-laravel --dev
- Add in your .env file the login path relative to your project url, like this...
LOGIN_URL=admin/login
- [Optional] Publish views files if you need to customize them
php artisan vendor:publish --provider="MHMartinez\BypassLogin\app\Providers\BypassLoginServiceProvider" --tag=view
You have now two new ways to login:
- Go to your login page, add
/bypass
at the end and pick a user's role to login. - In case you just want to pass a user id, go to your login page, and add
/bypass/{id}
to login.
Project Link: https://github.com/maurohmartinez/bypass-login-backpack-laravel
- Mauro Martinez Developer
- Cristian Tabacitu For creating Backpack for Laravel!