create multi authentication guards with backpack panel
- install Backpack CRUD/Base by following this Doc Backpack-Installation
- go to
config/backpack/base.php
and apply the following changes
route_prefix => '' ( emove it's value should be empty )
setup_auth_routes => true ( make it false)
setup_dashboard_routes => true ( make it false)
setup_my_account_routes => true ( make it false )
user_model_fqn => '' ( remove it's value should be empty )
middleware_class => '' ( remove it's value should be empty )
- In your terminal via composer:
composer require imokhles/multi-backpack
- Add this provider to your config/app.php ( no need for Laravel 5.5 and above ) :
iMokhles\MultiAuthBackPack\MultiAuthBackPackServiceProvider::class
Example usage:
php artisan make:multi-backpack Admin --admin_theme="adminox" or --admin_theme="adminlte"
- go to
config/backpack/base.php
- update
user_model_fqn => Admin::class
If you discover any security related issues, please email imokhles@imokhles.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.