PHPackages                             ramiawadallah/boomveltest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ramiawadallah/boomveltest

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

ramiawadallah/boomveltest
=========================

Laravel Multiauth package

03PHP

Since Feb 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ramiawadallah/boomveltest)[ Packagist](https://packagist.org/packages/ramiawadallah/boomveltest)[ RSS](/packages/ramiawadallah-boomveltest/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Multi Auth
==================

[](#laravel-multi-auth)

```
composer require ramiawadallah/boomveltest

Before proceeding : you can make a normal auth, check [this doc](https://github.com/bitfumes/laravel-multiauth#another-auth)

Publish Migrations

```bash
php artisan vendor:publish --tag="multiauth:migrations"
```

Run [the Migration](https://github.com/bitfumes/laravel-multiauth/database/migrations/create_permission_tables.php) to have tables in your database.

```
php artisan migrate
```

**Caveat**

If you have added new column to admin migration then you should need admin factory to generate first super admin via above command.

```
php artisan vendor:publish --tag="multiauth:factories"
```

First Admin
-----------

[](#first-admin)

Obviously, first time you need at least one super admin to login with and then create other admins.

```
php artisan multiauth:seed --role=super

```

Now you can login your admin side by going to  with creadential of **email = ** and **password = secret**Obviously you can later change these things.

Register new Admin
------------------

[](#register-new-admin)

To register new use you need to go to .

Keep in mind that only a Super Admin can create new Admin.

**Changing admin views**

You can Publish package views files and overrides with yours so that you can have views which suits your project design.

```
php artisan vendor:publish --tag="multiauth:views"
```

**Validations**

Yes you can write validation rules to your new columns or change existing validation rules by publishing config file.

```
php artisan vendor:publish --tag="multiauth:config"
```

Change Prefix
-------------

[](#change-prefix)

You can change the prefix in your config file you have just published. With prefix we mean what you want to call your admin side, we call it admin you can call it whatever you want. Suppose you have changed prefix to 'master' now everywhere instead of 'admin' word, that changed to 'master'

```
 /*
    |--------------------------------------------------------------------------
    | Prefix
    |--------------------------------------------------------------------------
    |
    | Use prefix to before the routes of multiauth package.
    | This way you can keep your admin page secure.
    | Default : admin
    */
    'prefix' => 'admin', // can change it to, lets say 'prefix' => 'master'
```

Redirect after Login
--------------------

[](#redirect-after-login)

You can change the redirect path after login for admin section. Just change this setting on config/multiauth.php file.

```
/*
    |--------------------------------------------------------------------------
    | Redirect After Login
    |--------------------------------------------------------------------------
    |
    | It will redirect to a path defined here after login.
    | You can change it to where ever you want to
    | redirect the admin after login.
    | Default : /admin/home
    */
    'redirect_after_login' => '/admin/home',
```

Create Roles
------------

[](#create-roles)

To create a new role you have two options:

1. Using artisan command

```
php artisan multiauth:role rolename
```

2. Using Interface Just go to .

Now you can click on 'Add Role' button to create new role.

**Edit or Delete Role can also be done with same interface**

Publish Routes file
-------------------

[](#publish-routes-file)

```
php artisan vendor:publish --tag="multiauth:routes"
```

Access Level
------------

[](#access-level)

**With Middleware**

1. You can use 'role' middleware to allow various admin for accessing certain section according to their role.

```
Route::get('admin/check',function(){
    return "This route can only be accessed by admin with role of Editor"
})->middleware('role:editor');
```

Here it does't matter if you give role as uppercase or lowercase or mixed, this package take care of all these.

2. If you want a section to be accessed by only super user then use role:super middleware A super admin can access all lower role sections.

```
Route::get('admin/check',function(){
    return "This route can only be accessed by super admin"
})->middleware('role:super');
```

**With Blade Syntax**

You can simply use blade syntax for showing or hiding any section for admin with perticular role. For example, If you want to show a button for admin with role of editor then write.

```
@admin('editor')
    Only For Editor
@endadmin
```

If you want to add multiple role, you can do like this

```
@admin('editor,publisher,any_role')
     This is visible to admin with all these role
@endadmin
```

Another Auth
------------

[](#another-auth)

**Apart from Admin section, you can make a another auth**

```
php artisan multiauth:make {guard}
```

After you run this command you will get steps in which files has been added/changed. [![For Make](https://user-images.githubusercontent.com/41295276/44602450-4a4e2580-a7fd-11e8-858b-cac65c496908.png)](https://user-images.githubusercontent.com/41295276/44602450-4a4e2580-a7fd-11e8-858b-cac65c496908.png)

**You can rollback this auth also if you want.**

```
php artisan multiauth:rollback {guard}
```

This command will show you steps to rollback and file that has changed/removed. [![For Rollback](https://user-images.githubusercontent.com/41295276/44602466-5508ba80-a7fd-11e8-9737-3711baecbbdb.png)](https://user-images.githubusercontent.com/41295276/44602466-5508ba80-a7fd-11e8-9737-3711baecbbdb.png)

License
-------

[](#license)

This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7b3be5b824914ad8e443999dee7e9ff18eb7a457401d41ea13bffd56cc660ae?d=identicon)[ramiawadallah](/maintainers/ramiawadallah)

---

Top Contributors

[![ramiawadallah](https://avatars.githubusercontent.com/u/8626791?v=4)](https://github.com/ramiawadallah "ramiawadallah (2 commits)")

### Embed Badge

![Health badge](/badges/ramiawadallah-boomveltest/health.svg)

```
[![Health](https://phpackages.com/badges/ramiawadallah-boomveltest/health.svg)](https://phpackages.com/packages/ramiawadallah-boomveltest)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
