PHPackages                             chweb/multi-auth - 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. chweb/multi-auth

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

chweb/multi-auth
================

Multi-authentication scaffolding for Laravel 11, 12, and 13 with support for Blade, React, and Vue stacks.

1.3.2-beta1(2mo ago)010MITJavaScriptPHP ^8.2

Since Nov 26Pushed 2mo agoCompare

[ Source](https://github.com/chwebtechnologies/multi-auth)[ Packagist](https://packagist.org/packages/chweb/multi-auth)[ Docs](https://github.com/harshitchavda11/multi-auth)[ RSS](/packages/chweb-multi-auth/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (9)Used By (0)

Laravel Multi-Auth Package
==========================

[](#laravel-multi-auth-package)

[![Latest Version](https://camo.githubusercontent.com/49d5c4068af074c9b91d93cc25e2ea1e0957ea26d1c21dee7e3576f940db0c18/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e342e302d626c75652e737667)](https://github.com/chweb/multi-auth)[![PHP Version](https://camo.githubusercontent.com/9709c53fa4d460e36586ea213ef599616646ff44e6805c5aa7cd9a4dc8f78271/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e342d707572706c652e737667)](https://php.net)[![Laravel Version](https://camo.githubusercontent.com/2ae0508f960ed59e960abfa271767571c2586ce2aef3a92cc4f95bb3f4732b6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531312e3025323025374325323025354531322e3025323025374325323025354531332e302d7265642e737667)](https://laravel.com)

A premium, production-ready multi-authentication package for Laravel 11, 12, and 13 with full Laravel Breeze integration. Supports Blade, React (Inertia), and Vue (Inertia) stacks. Built and maintained by **CHWEBTECH**.

✨ Features
----------

[](#-features)

- 🚀 **Quick Setup** - One command to scaffold complete authentication for any guard
- 🎨 **Multi-Stack Support** - Beautifully crafted for Blade, React, and Vue with Inertia.js
- 🔍 **Smart Detection** - Automatically detects your existing stack and adapts accordingly
- 🔧 **Breeze Integration** - Seamlessly integrates with Laravel Breeze for consistent UX
- 📦 **Full Scaffolding** - Models, migrations, controllers, routes, and high-end views
- 🔐 **Secure by Design** - Includes rate limiting, password rotation, and validation
- 🎯 **Guard Isolation** - Completely separate authentication flows for different user types
- 💎 **Premium UI** - Stunning glassmorphism designs with dark mode support and Tailwind CSS
- 💡 **Developer Friendly** - Interactive CLI prompts and clear success instructions

📋 Requirements
--------------

[](#-requirements)

- PHP ^8.4
- Laravel ^11.0 | ^12.0 | ^13.0
- Composer

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require chweb/multi-auth:^1.1
```

🚀 Quick Start
-------------

[](#-quick-start)

Create a new authentication guard (e.g., for `admin`):

```
php artisan multi-auth:install admin
```

Interactive prompts will guide you if any dependencies (like Breeze) are missing.

📖 Usage
-------

[](#-usage)

### Basic Command

[](#basic-command)

```
php artisan multi-auth:install {guard-name}
```

### Options

[](#options)

- `--stack=blade|react|vue`: Force a specific frontend stack
- `--force`: Overwrite existing files (Use with caution)

🎯 What Gets Generated?
----------------------

[](#-what-gets-generated)

### Logic &amp; Database

[](#logic--database)

- **Model**: `app/Models/{Guard}.php`
- **Migration**: `database/migrations/{timestamp}_create_{guards}_table.php`
- **Controllers**: Located in `app/Http/Controllers/{Guard}Auth/`
- **Routes**: `routes/{guard}.php`
- **Config**: `config/multi-auth.php`

### Premium Views

[](#premium-views)

- **Blade**: `resources/views/{Guard}Auth/`
- **React/Vue**: `resources/js/Pages/{Guard}Auth/`

The generated views feature modern gradients, backdrop blurs (glassmorphism), and fully responsive layouts that look great on all devices.

⚙️ Configuration
----------------

[](#️-configuration)

### 1. auth.php Setup

[](#1-authphp-setup)

Update your `config/auth.php` with the generated guard and provider:

```
'guards' => [
    'admin' => [
        'driver' => 'session',
        'provider' => 'admins',
    ],
],

'providers' => [
    'admins' => [
        'driver' => 'eloquent',
        'model' => App\Models\Admin::class,
    ],
],
```

### 2. Route Registration

[](#2-route-registration)

In your `bootstrap/app.php` (Laravel 11+):

```
->withRouting(
    // ...
    then: function () {
        Route::middleware('web')
            ->group(base_path('routes/admin.php'));
    },
)
```

🔄 Versioning
------------

[](#-versioning)

Current version: **1.4.0**

Access version programmatically:

```
use Chweb\MultiAuth\MultiAuthServiceProvider;
echo MultiAuthServiceProvider::VERSION;
```

👨‍💻 Author
----------

[](#‍-author)

**Harshit Chavda and Team (CHWEBTECH)**

- Email:
- Website: [chwebtech.com](https://chwebtech.com)

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

---

Made with ❤️ for the Laravel community by **CHWEBTECH**

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance85

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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.

###  Release Activity

Cadence

Every ~20 days

Total

8

Last Release

78d ago

PHP version history (2 changes)v1.0.1-beta1PHP ^8.4

1.3.0-beta1PHP ^8.2

### Community

Maintainers

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

---

Tags

laravelscaffoldingAuthenticationinertiareactvuebreezemulti-auth

### Embed Badge

![Health badge](/badges/chweb-multi-auth/health.svg)

```
[![Health](https://phpackages.com/badges/chweb-multi-auth/health.svg)](https://phpackages.com/packages/chweb-multi-auth)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k453.6k30](/packages/tightenco-jigsaw)

PHPackages © 2026

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