Skip to content

iMokhles/MultiAuthCommand-BackPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiAuthCommand-BackPack

Latest Version on Packagist Scrutinizer Code Quality Build Status Total Downloads Software License

create multi authentication guards with backpack panel

Before Install

  1. install Backpack CRUD/Base by following this Doc Backpack-Installation
  2. 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

  1. In your terminal via composer:
composer require imokhles/multi-backpack
  1. 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.

Beerpay Beerpay