imokhles/multi-backpack

create laravel multi-auth files, middleware, models, migrations etc with backpack

0.8.5 2018-10-28 07:58 UTC

This package is auto-updated.

Last update: 2024-04-29 01:10:23 UTC


README

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