imokhles / multi-backpack
create laravel multi-auth files, middleware, models, migrations etc with backpack
0.8.5
2018-10-28 07:58 UTC
Requires
- php: >=5.6.0
- backpack/crud: ^3.4
- illuminate/support: ~5.7
- prologue/alerts: ^0.4.1
README
create multi authentication guards with backpack panel
Before Install
- 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 )
Install
- 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
Usage
Example usage:
php artisan make:multi-backpack Admin --admin_theme="adminox" or --admin_theme="adminlte"
then
- go to
config/backpack/base.php
- update
user_model_fqn => Admin::class
Security
If you discover any security related issues, please email imokhles@imokhles.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.