chweb / multi-auth
Multi-authentication scaffolding for Laravel 11, 12, and 13 with support for Blade, React, and Vue stacks.
Package info
github.com/chwebtechnologies/multi-auth
Language:JavaScript
pkg:composer/chweb/multi-auth
Requires
- php: ^8.2
- illuminate/console: ^11.0|^12.0|^13.0
- illuminate/filesystem: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
- symfony/process: ^6.0|^7.0|^8.0
This package is auto-updated.
Last update: 2026-04-16 07:33:37 UTC
README
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
- 🚀 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
- PHP ^8.4
- Laravel ^11.0 | ^12.0 | ^13.0
- Composer
📦 Installation
Install the package via Composer:
composer require chweb/multi-auth:^1.1
🚀 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
Basic Command
php artisan multi-auth:install {guard-name}
Options
--stack=blade|react|vue: Force a specific frontend stack--force: Overwrite existing files (Use with caution)
🎯 What Gets Generated?
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
- 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
1. auth.php 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
In your bootstrap/app.php (Laravel 11+):
->withRouting( // ... then: function () { Route::middleware('web') ->group(base_path('routes/admin.php')); }, )
🔄 Versioning
Current version: 1.4.0
Access version programmatically:
use Chweb\MultiAuth\MultiAuthServiceProvider; echo MultiAuthServiceProvider::VERSION;
👨💻 Author
Harshit Chavda and Team (CHWEBTECH)
- Email: chwebtech0811@gmail.com
- Website: chwebtech.com
📄 License
This package is open-sourced software licensed under the MIT license.
Made with ❤️ for the Laravel community by CHWEBTECH